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
I'm working on implementing the isolatedModules option using the transpile method in gulp-typescript. I get errors that lib.d.ts hasn't been found and that it cannot find global types:
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'String'.
error TS6053: File 'lib.d.ts' not found.
Is there a way to filter out these messages using the API? Or should I just implement something like if (error.code === 2318 || error.code === 6053) { ... }?
In my opinion these messages should be to filter out in the transpile method, as everyone who uses that method won't be interested in those messages.
Activity
mhegazy commentedon May 21, 2015
Ivo Gabe de Wolff (@ivogabe), you are correct. these should not be added.
basarat commentedon May 21, 2015
FWIW I just don't even look at the errors and just spit out the JS 👍 e.g. in https://github.com/basarat/typescript-script
Put the burden on the JS runtime ;)
Fix #3245: ensure transpile diagnostics only include syntactic and co…
Merge pull request #3274 from Microsoft/filterTranspileDiagnostics
Update TypeScript