The newest typescript 1.5 beta, Webstorm 10.0.2, for the code snippet:
let a: typeof DataView;
let b: typeof Map;
let c: typeof WeakMap;
let d: typeof Set;
I get four errors:
Error:(1, 15) TS2304: Cannot find name 'DataView'.
Error:(4, 15) TS2304: Cannot find name 'Set'.
Error:(3, 15) TS2304: Cannot find name 'WeakMap'.
Error:(2, 15) TS2304: Cannot find name 'Map'.
Please check and tell me why? Is it a bug of typescript compiler or WebStorm? Which issue platform should I go? Thanks.
The issue is fixed for master: https://github.com/Microsoft/TypeScript/issues/2998
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With