mihaifm / linq

linq.js - LINQ for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatible with Webpack/Typescript/Angular

mtman opened this issue · comments

commented

If I import it,

import 'linq';

I get intellisense, but it doesn't compile:

'Enumerable' refers to a UMD global, but the current file is a module. Consider adding an import instead.

Used with: Webpack, Angular 4, Typescript

commented

Works, thanks. I can also use

import * as Enumerable from 'linq';

which works with es2015 modules.