IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
tsconfig.json appears to be set correctly. Running tsc
locally does not throw any errors, and my project builds successfully. However, Sublime is giving me feedback that support for Decorators is experimental, and to set the flag in my tsconfig. It is also telling me that vendor modules cannot be resolved.
My tsconfig file:
{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"baseUrl": ".",
"lib": [
"es5",
"es6"
],
"paths": {
"*": [
"jspm_packages/npm/*",
"jspm_packages/github/*",
"jspm_packages/bitbucket/*"
]
}
},
"include": [
"../app/**/*.ts"
]
}
I am using Typescript 2.0.0, JSPM 0.17 Beta, and Sublime Text 3. Any help would be appreciated.
Have code with error:
this.dialog.open(someDialogComponent, {});
--> gives error (correctly) "Argument of type {} is not assignable to paramater of type 'MdDialogConfig ..."
Fix code:
this.dialog.open(someDialogComponent);
--> still get the same error (incorrectly) "Argument of type {} is not assignable to paramater of type 'MdDialogConfig ..."