These are chat archives for TypeStrong/atom-typescript

21st
Jun 2015
helarqjsc
@helarqjsc
Jun 21 2015 12:16
This message was deleted
Hi everybody,
Can someone please explain how does this structure work:
import atomConfig = require('./atomConfig'); ///ts:import:generated
Why is there both import and require? There is also doesn't seem to be anything about atomConfig in the compiled file, so I'm a bit confused on the purpose of this line
Seivan Heidari
@seivan
Jun 21 2015 18:26
@helarqjsc atomConfig is importing its content under a module called atomConfig
Does anyone know if there is a way to 'decrease' https://gist.github.com/seivan/7cff36f4da1681f56e9d and also the ability to add an abstract method on a superclass, that needs to be overridden?
Micah Zoltu
@MicahZoltu
Jun 21 2015 18:28
No abstract methods in TS yet. :(
In particular, no compile time checks.
Basarat Ali Syed
@basarat
Jun 21 2015 23:57

there is also doesn't seem to be anything about atomConfig in the compiled file

@helarqjsc if an imported file isn't used in the variable declaration space that it is not present in the compiled JS.

@helarqjsc if curious about what I mean by declaration space : http://basarat.gitbooks.io/typescript/content/docs/project/declarationspaces.html