i want to use baconjs with TS,but after copy baconjs def file for ts,i got that msg: bacon.ts(216,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
to solve that,i should add a file watcher with --module cmd for tsc,but i cannot find how to distinguish between module and other ts files from file watcher settingsff
news:
after add d.ts file,there are lots of errors like that
after add d.ts file,there are lots of errors like that
Thats because Webstorm isn't updated to TS 1.4 which introduced promises. Fix: Use an older .d.ts
(https://github.com/borisyankov/DefinitelyTyped/tree/1.3.0) or wait for webstorm to update.