These are chat archives for TypeStrong/atom-typescript

30th
Apr 2015
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 03:12
Looks like Code is written in TS too.
Basarat Ali Syed
@basarat
Apr 30 2015 03:28
Yup :) I find it annoying that its not OSS
Basarat Ali Syed
@basarat
Apr 30 2015 04:16
blob
Basarat Ali Syed
@basarat
Apr 30 2015 04:44
however they don't seem to be using node require
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 05:25
@basarat : Looks like they are using AMD modules and a loader.js, right?
Basarat Ali Syed
@basarat
Apr 30 2015 05:26
@waywardmonkeys Correct
log out require, click on loader.js , click on pretiffy. Then again log out require. And it will show you the pretty source
blob
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 05:29
I just read the minified JS!
What do you mean by "log out require" though?
Basarat Ali Syed
@basarat
Apr 30 2015 05:30
blob
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 05:32
ah.
Basarat Ali Syed
@basarat
Apr 30 2015 05:32
blob
the pretty print button ^
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 05:41
I wonder what this means for me.
Basarat Ali Syed
@basarat
Apr 30 2015 05:41
You should the guy validating ES6 spec as you have a minified js compiler in your brain
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 05:44
I was thinking more of "What does Code mean for me, since I'm working on a developer tool that is written in TypeScript and runs in Electron?"
Basarat Ali Syed
@basarat
Apr 30 2015 05:44
what is electron?
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 05:45
atom-shell's new name.
Basarat Ali Syed
@basarat
Apr 30 2015 05:46
ahhh
that explains a lot :rose:
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 06:44
nice: exports._TS_FORCE_EXTERNAL = true;
Basarat Ali Syed
@basarat
Apr 30 2015 07:00
@waywardmonkeys huh?
Bruce Mitchener
@waywardmonkeys
Apr 30 2015 07:20
@basarat That was seen in one of the JS files in Code.
Mike Graham
@cmichaelgraham
Apr 30 2015 08:02
just to confirm, atom-typescript used to include lib.dom.d.ts and lib.es6.d.ts and now it doesn't so i need to include them in my project, right?
Florian Verdonck
@nojaf
Apr 30 2015 08:57
Does atom-typescript still have more functionality then Visual Studio Code?
Basarat Ali Syed
@basarat
Apr 30 2015 09:57

just to confirm, atom-typescript used to include lib.dom.d.ts and lib.es6.d.ts and now it doesn't so i need to include them in my project, right?

@cmichaelgraham no. It might seem that way because the stuff that you are missing is no longer in lib.d.ts but is still there in lib.es6.d.ts. It used to be in lib.d.ts . This is a bug in the TypeScript compiler. Please raise your concern here : Microsoft/TypeScript#2953. I'll leave a comment there on your behalf. @vaughnroyko is suffering this issue as well.

Mike Graham
@cmichaelgraham
Apr 30 2015 09:58
thank you !!!!! :) i manually edited the files and now am back to building. this is great stuff !!
:rose:
Just give one example please :D otherwise other people would be in pain when TS next is released :D
Basarat Ali Syed
@basarat
Apr 30 2015 10:04

@nojaf Use whatever strikes your fancy :)

Key diffs:

  • We are OSS ;)
  • We have the atom ecosystem.
  • We do unstandard things like tsconfig.json's filesGlob just because that is convenient :)
  • Some more personal stuff I wanted like ast viewer / quick fix api / custom typescriptServices / dependency view

    I plan to take absolutely no offence if anyone forks atomts and does a better job. I am doing this as a learning experiment and making it easier to work on a language I use daily :rose: Note: I've been and will be be using VS Code side by side.

let me know if i should edit :)
Basarat Ali Syed
@basarat
Apr 30 2015 10:06
Specifically what did you need from lib.es6.d.ts that caused you to copy that file into your project. I am not talking about Promise. I am talking about something that prompted your recent (1 hour ago) message
Mike Graham
@cmichaelgraham
Apr 30 2015 10:08
gotcha
looking...
was getting tons of errors about ...rest parameter must be an array (even though it had any[] as its type)
couldn't find Function type
Basarat Ali Syed
@basarat
Apr 30 2015 10:10
@cmichaelgraham I got it. I'll comment :rose:
Mike Graham
@cmichaelgraham
Apr 30 2015 10:10
thanks again !!
then i added lib.core.es6.d.ts because it couldn't find HTMLElement type
then i had lots of duplicate definitions i had to manually delete
Basarat Ali Syed
@basarat
Apr 30 2015 10:13
Sorted. Hopefully will be fixed soon :)
Vaughn Royko
@vaughnroyko
Apr 30 2015 16:59
Thanks for all the support. I'll take a look tonight if I can find anything else.
Vaughn Royko
@vaughnroyko
Apr 30 2015 21:58
Did you see Atom TypeScript on the big screen @basarat ? Anders Hejlsberg showed it off during Build 2015.
Mike Graham
@cmichaelgraham
Apr 30 2015 21:58
now that's something !!
Basarat Ali Syed
@basarat
Apr 30 2015 21:59
I didn't see it myself. But did get that tweeted to me :rose: Thanks guys! https://twitter.com/schwarty/status/593858817894404096
Mike Graham
@cmichaelgraham
Apr 30 2015 22:00
THAT is a big screen :)
Basarat Ali Syed
@basarat
Apr 30 2015 22:00
I'm just glad it wasn't a broken build :D
Vaughn Royko
@vaughnroyko
Apr 30 2015 22:01
Nice, haha, yep!
Basarat Ali Syed
@basarat
Apr 30 2015 23:34
Just released atom-ts with ts 1.5 beta. I feel like this is a step backward since we were previously on master and that had more stuff (e.g. umd). We'll go back to master once the ts 1.5 beta dust settles :rose: