These are chat archives for TypeStrong/atom-typescript

12th
Apr 2015
Basarat Ali Syed
@basarat
Apr 12 2015 01:49
Thanks for the idea. Setup "activity" for this project as well :heart:
@donnut I've documented my aversion to --out : https://github.com/TypeStrong/atom-typescript/blob/master/docs/out.md Manual module management is not something you want to do. I have indeed been guilty of doing it before and even recommending it to colleagues as a quick starter
Michael
@michaelsg
Apr 12 2015 02:14
@basarat :-) :musical_note: happy Saturday evening (here). I had a crazy idea this morning as I was waking - no lie. What if you used the github history of changes to analyze a project and show its graph evolve over time.
Basarat Ali Syed
@basarat
Apr 12 2015 03:20
Dependency graph?
Michael
@michaelsg
Apr 12 2015 03:35
yes. for some odd reason as I was waking this morning I was thining about it in motion. :-) Just thought I'd pass it on it case it were a message meant for you. The impression I got was that the motion described time and I found myself wondering if you could get a whole snapshot of a repo from a point. At that point I think I saw the coffee and all else fled my mind.
Basarat Ali Syed
@basarat
Apr 12 2015 06:24
At that point I think I saw the coffee and all else fled my mind.
:) Story of my life
Erwin Poeze
@donnut
Apr 12 2015 11:32
@basarat Thanks for the link on --out. I'll read it.
Matt Traynham
@mtraynham
Apr 12 2015 17:51
Question for anybody

Say you have a definition file for a dependency, in my case moment.js. The dependency exports itself as:

declare var moment: moment.MomentStatic;
declare module 'moment' {
    export = moment;
}

Now moment itself is a function.

    interface MomentStatic {

        version: string;

        (): Moment;

So you can do:

moment().day();
Say I want to import moment using the ES6 Module syntax
I couldn't get any of the following to work:
import moment from 'moment';
import * from 'moment';
import {default as moment} from 'moment';
All of them fail. I was wondering if anybody had an idea how to get around that...
Basarat Ali Syed
@basarat
Apr 12 2015 21:31
Answered on so ;)
Matt Traynham
@mtraynham
Apr 12 2015 23:05
Thanks @basarat!