webstorm - TypeScript 1.5 ES6 modules & .d.ts files from DefinitelyTyped seem incompatible -


i'm using webstorm web-development & have upgraded built-in typescript 1.4 compiler 1.5.3. however, not went wanted compiler began yield errors prompting me drop --module commonjs parameter & switch es6 modules instead (i'm using --target es6). having done that, started getting errors saying import assignments cannot used when targeting es6 & should use new module syntax instead (error 1202). converted files, apparently wasn't enough .d.ts files installed via tsd definitelytyped repo use old syntax making compiler keep giving same errors.

i wrote small converter .d.ts files, works although makes me fix errors manually here & there. i'm wondering if there better workaround this? perhaps, i'm missing something?

p.s. changing --target es5 not option compiler otherwise complain absence of things promises heavily use in project.

changing --target es5 not option compiler otherwise complain absence of things promises heavily use in project.

use --target es5 --nolib , bring in es6.lib.d.ts manually.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -