cannot redeclare block-scoped variable <var-name>
@amit-handa use file modules : https://basarat.gitbooks.io/typescript/content/docs/project/modules.html to ensure each file isolated
In Atom, I type 'ctrl+]' to see declaration. what is the shortcut for returning from declaration ?
@amit-handa Use this package : https://github.com/TypeStrong/atom-typescript/blob/master/docs/packages.md#last-cursor-position in our list of packages we love. :rose:
I'm getting The project file contains invalid options - Unknown Option: allowSyntheticDefaultImports -- does this option have to be added to Atom TypeScript?
@glen-84 yes. This is because we error on unknown options as a convinience for mis-spellings . I see the issue : TypeStrong/atom-typescript#762 so will continue discussion there :rose:
building the project does (sometimes?)
@kpgarrod are you using external transpiler option?
"newLine": "LF"
in my tsconfig file, but it's writing the files with CRLF. It seems to work fine when using tsc directly.
I use jspm for my run time dependencies, but I'm currently having to npm install angular2 just so atom-typescript can resolve the imports and typings. Does anyone have any thoughts on hooking into the jspm packages instead of having to install the npm versions as well?
@kniteli Nope. TypeScript only resolves on node_modules
at the moment and hence that is what we support. As far as I know jspm module resolution is being tracked here : Microsoft/TypeScript#5039 but don't think it covers auto impor. Correct me if I am wrong :rose: