Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

typescript 1.5 beta in webstorm 10.0.2, get an error: TS2304-Cannot find name 'DataView'

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.

like image 988
Rare Grass Avatar asked Nov 09 '22 14:11

Rare Grass


1 Answers

The issue is fixed for master: https://github.com/Microsoft/TypeScript/issues/2998

like image 192
anstarovoyt Avatar answered Nov 15 '22 08:11

anstarovoyt