You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an angular2 project, relying on rxjs types available from node_modules/rxjs and only user-installed es6 typings (working on angular/angular#5807 )
If we ask users to eg. $ typings install es6-collections es6-promise --ambient --save
Then we are missing PromiseConstructor:
node_modules/rxjs/CoreOperators.d.ts(77,31): error TS2304: Cannot find name 'PromiseConstructor'.
node_modules/rxjs/Observable.d.ts(65,67): error TS2304: Cannot find name 'PromiseConstructor'.
node_modules/rxjs/Observable.d.ts(159,31): error TS2304: Cannot find name 'PromiseConstructor'.
This type is defined in typescript's distributed lib.es6.d.ts and also in es6-shim.d.ts but not in es6-promise.d.ts
Workaround for now is we require users install typings for all of es6-shim but this has the disadvantage that they may type-check usage of all es6 features, even those not polyfilled at runtime.
The text was updated successfully, but these errors were encountered:
Given an angular2 project, relying on rxjs types available from node_modules/rxjs and only user-installed es6 typings (working on angular/angular#5807 )
If we ask users to eg.
$ typings install es6-collections es6-promise --ambient --save
Then we are missing
PromiseConstructor
:This type is defined in typescript's distributed
lib.es6.d.ts
and also ines6-shim.d.ts
but not ines6-promise.d.ts
Workaround for now is we require users install typings for all of
es6-shim
but this has the disadvantage that they may type-check usage of all es6 features, even those not polyfilled at runtime.The text was updated successfully, but these errors were encountered: