These are chat archives for TypeStrong/atom-typescript

4th
Jun 2015
Basarat Ali Syed
@basarat
Jun 04 2015 01:30
@kpgarrod all doesn't work well with type infereence. Wrap it into a function and use type assertions to your hearts content specific to your use case.
Steve Ognibene
@nycdotnet
Jun 04 2015 02:21
Is anyone aware of a mod for atom that provides functionality like "navigate backward" or "navigate forward" in VS/
?
@nycdotnet to get my setup : apm stars --install --user basarat ;)
Steve Ognibene
@nycdotnet
Jun 04 2015 03:45
yes I know we've discussed that - I should have known
Thanks! :-)
kpgarrod
@kpgarrod
Jun 04 2015 06:22
@basarat thanks for the response, but I'm sorry I don't understand what you mean by 'wrap it into a function'. Wrap what? What would that look like?
Basarat Ali Syed
@basarat
Jun 04 2015 06:47
@kpgarrod wrap the promise.all in a function e.g.
function foo():ManuallyWriteThisInterface{
    return <ManuallyWriteThisInterface>Promise.all([]);
}
debuuu
@debuuu
Jun 04 2015 07:02
@basarat: re BabylonJS/Babylon.js#550 - thanks a lot for looking into that! I'll just remove those four properties in my local file, then.
Much appreciated!
kpgarrod
@kpgarrod
Jun 04 2015 07:21

@basarat sorry if I'm being a bit dense here but I can't get this to work. I've written a temporary interface like this:

interface ManuallyWriteThisInterface{

[index:number]:any;
}

but I get the same errors

strangely I am using Promise.all elsewhere without any issues
kpgarrod
@kpgarrod
Jun 04 2015 08:22

well here's a strange thing. If I push the promises into an array (promises) and use the array in Promise.all(promises), it works.

Promise.all([promise1, promise2, promise3])

gives an error.

var promises = [];
promises.push(promise1);
promises.push(promise2);
promises.push(promise3);
Promise.all(promises);

works correctly!

Ben Collins
@aggieben
Jun 04 2015 16:19
how can I know precisely which version of the ts compiler is being used by the package? I haven't set the custom typescript services setting
Ben Collins
@aggieben
Jun 04 2015 16:42
ok, nevermind, figured that one out. the other question I had: how do I pass flags to the compiler, or see what flags are passed by default?