Cannot use linq.js library on ionic 2 ts project


#1

I need to use linq.js library in my app. I followed the following tutorial;
(http://x-team.com/2016/06/include-javascript-libraries-in-an-ionic-2-typescript-project/)
and, I import Enumerable like;
import {Enumerable} from 'linq'

However, when I tried to use it, visual studio code tells me [ts] Cannot find name 'Enumerable'.

I am struggling with this issue for 2 hours, please help me


#2

Typings is no longer used.
https://www.npmjs.com/package/@types/linq
You can do
npm install @types/linq --save

to get linqjs add type declarations for linq

or try
https://www.npmjs.com/package/linqts