These are chat archives for TypeStrong/atom-typescript

9th
Apr 2015
Basarat Ali Syed
@basarat
Apr 09 2015 09:42
@cmichaelgraham That stuff you are looking for is now in v2.14.2 :rose: We are back to https://github.com/Arnavion/typescript-github beta builds :shipit: :ship:
Mike Graham
@cmichaelgraham
Apr 09 2015 10:24
yahoooooooo !! you are amazing :)
Mike Graham
@cmichaelgraham
Apr 09 2015 11:31

question: i'm getting some build errors. it is complaining that i have duplicate definitions. i'm including this es6.d.ts

here's one of the errors (there are about 300+ errors)

at line 656, file C:/a/spike-aurelia-ts-port/aurelia-ts/es6.d.tsDuplicate identifier 'size'.
size

it is this line in the file

(this is not a new error with this release)
Mike Graham
@cmichaelgraham
Apr 09 2015 12:10
here is the repo if you want to reproduce the error :)
Mike Graham
@cmichaelgraham
Apr 09 2015 17:52

fixed the errors by deleting the offending lines in es6.d.ts - probably not a good long term answer ;)

cycle detection is VERY cool !!!!!!!!

aurelia dependency graph with cycle.jpg
Michael
@michaelsg
Apr 09 2015 18:06
@cmichaelgraham Do you end up with an intermediate result from your process that leaves a copy of the Aurelia src with .d.ts type annotations? I was curious if that would help me rummaging through the sources.
Mike Graham
@cmichaelgraham
Apr 09 2015 18:19

yeah- so i pull in the pure ES6 sources here, and then port them here.

you'd just need to change the tsconfig.json to tell it to output .d.ts files

you might weigh in on this: Microsoft/TypeScript#2568 - it would make a single .d.ts for each module - that would rock :)
Michael
@michaelsg
Apr 09 2015 18:21
I think I'll try that later. Thank you. I've been reading a lot of the source in JS, but it's such a drag not having any type info.
Mike Graham
@cmichaelgraham
Apr 09 2015 18:21
most of the types in that spike are any
still lots of work to do tightening things down :)
Michael
@michaelsg
Apr 09 2015 18:22
I have been mulling that over. I could definately see a library developer needing that. I have to check around for something too - you are using that type info yes? Try it with infered types? I thikn there's a bug.
Michael
@michaelsg
Apr 09 2015 19:40
@basarat I updated a-ts but I still can't put this line into tsconfig.json. Its says it's not valid so refuses to compile.
"emitDecoratorMetadata": true
Basarat Ali Syed
@basarat
Apr 09 2015 23:10
@michaelsg thanks. Will revisit them today : TypeStrong/atom-typescript#243
Michael
@michaelsg
Apr 09 2015 23:46
@basarat I actually did it locally using the contributing instructions. I didn't fork, though. I cloned directly. Not sure how to offer the PR. Saves you all of 2 lines anyway :-)
Basarat Ali Syed
@basarat
Apr 09 2015 23:48
@michaelsg paste the two lines here and I'll merge :)
Michael
@michaelsg
Apr 09 2015 23:53
Low tech. I love it.
lib\main\tsconfig\tsconfig.ts
interface CompilerOptions {
+   emitDecoratorMetadata?: boolean; // Experimental. Emits addition type information for this reflection API https://github.com/rbuckton/ReflectDecorators
var compilerOptionsValidation .... = {
+ emitDecoratorMetadata: { type: types.boolean }
Mike Graham
@cmichaelgraham
Apr 09 2015 23:55
@michaelsg if it is a single file edit, you can do it all from github. you make the edit, it forks, then you push a button to submit a pull request. pretty awesome :)
try it on one of my repos, if you like :)
Basarat Ali Syed
@basarat
Apr 09 2015 23:55
good for future. But I've done the merge now :)
Mike Graham
@cmichaelgraham
Apr 09 2015 23:55
ya - futures :)
your work is awesome, @basarat :)
really love the cycle finder
Michael
@michaelsg
Apr 09 2015 23:56
how do I make pretty pictures? You guys have been showing some off.
Basarat Ali Syed
@basarat
Apr 09 2015 23:56
published 2.14.3
Mike Graham
@cmichaelgraham
Apr 09 2015 23:57
<ctrl> <shift> P --> then type typescript and scroll down
Basarat Ali Syed
@basarat
Apr 09 2015 23:57
Michael
@michaelsg
Apr 09 2015 23:58
@cmichaelgraham I've been thinking about that request for single file dts.
Mike Graham
@cmichaelgraham
Apr 09 2015 23:58
yes?
Microsoft/TypeScript#2568 (for reference)
Michael
@michaelsg
Apr 09 2015 23:59
how would that be specified? You want a single file from ... what point in the dependency tree?