I downloaded the package "immutable" from the package manager "npm" and its file "package.json" has a property "typings" with the value node_modules/immutable/dist/immutable.d.ts
The problem is when I try to use it from a class I get the error TS2307 (TS) Cannot find module 'immutable'
import { Immutable } from "immutable"; // error here
export class RestRepository<T = IEntityBase> extends BasicRepository<T>
{
private c: Immutable.Foo;
}
I understand that theproperty exclude from tsconfig excludes all file inside node_modulesfolder (except node_modules/@typings) but "@typings/immutable" does not have ts files but a readme.md
README.md
This is a stub types definition for Facebook's Immutable (https://github.com/facebook/immutable-js).
Facebook's Immutable provides its own type definitions, so you don't need @types/immutable installed!
Any help would be very appreciated!
- tsc 2.6