Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 15 17:06
    chaffeqa opened #1508
  • Aug 08 16:07
    lierdakil closed #1507
  • Aug 08 16:07
    lierdakil labeled #1507
  • Aug 08 11:43
    rahamin1 opened #1507
  • Aug 07 12:07
    lierdakil labeled #1505
  • Aug 07 12:07
    lierdakil closed #1505
  • Aug 06 21:51
    TheEmrio closed #1506
  • Aug 05 14:22
    TheEmrio opened #1506
  • Jul 15 15:40
    Xapphire13 closed #1496
  • Jul 10 13:23
    akonwi opened #1505
  • Jul 10 04:44
    nelson6e65 edited #1504
  • Jul 10 04:40
    nelson6e65 opened #1504
  • Jul 08 06:40
    sshquack closed #846
  • Jun 17 16:02
    akonwi opened #1503
  • Jun 02 18:18
    tanfonto opened #1502
  • May 28 17:11
    jazzdragon opened #1501
  • Apr 29 01:12
    dyping closed #1500
  • Apr 28 06:56
    dyping edited #1500
  • Apr 28 06:54
    dyping edited #1500
  • Apr 26 11:38
    dyping opened #1500
Basarat Ali Syed
@basarat
@nycdotnet to get my setup : apm stars --install --user basarat ;)
Steve Ognibene
@nycdotnet
yes I know we've discussed that - I should have known
Thanks! :-)
kpgarrod
@kpgarrod
@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
@kpgarrod wrap the promise.all in a function e.g.
function foo():ManuallyWriteThisInterface{
    return <ManuallyWriteThisInterface>Promise.all([]);
}
debuuu
@debuuu
@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

@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

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
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
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?
Basarat Ali Syed
@basarat
:)
Mustafa Hastürk
@muhasturk
hllo
http://www.typescriptlang.org/ is open source? can we contribute
Micah Zoltu
@MicahZoltu
Mustafa Hastürk
@muhasturk
I mean website is open source
thanks for channel by the way
Micah Zoltu
@MicahZoltu
Oh, not sure on the site.
Basarat Ali Syed
@basarat
@muhasturk no, The playground isn't open source. I do have this though : http://basarat.github.io/TypeScriptEditor/
kpgarrod
@kpgarrod
I'm having an issue with build. I exclude the js files from git and use atom to auto-compile the ts into js. Then I webpack the js files. When a collaborator checks out my source, she doesn't get the current js, but uses atom-ts build to recompile everything. This used to work fine, but in the last few days it seems that build is no longer compiling all the sources. Did something change or am I missing something else? Is there another way to compile all the ts source files into their corresponding js files? The collaborator's machine is quite resources-constrained. Could that make a difference?
Basarat Ali Syed
@basarat

Did something change or am I missing something else?

@kpgarrod I added package.json support : https://github.com/TypeStrong/atom-typescript/#packagejson-support Maybe that broke something. Can I have the code?

kpgarrod
@kpgarrod
@basarat sorry I can't share the repository.
Basarat Ali Syed
@basarat
@kpgarrod understandable. FWIW I did do a quick test right now and build is working fine for me
Basarat Ali Syed
@basarat
@kpgarrod you can try npm install atom-typescript -g and then run atbuild in any given folder to get atom-typescript to compile code without actually using atom
caveat : only if you have iojs installed (brings in node and npm executables)
kpgarrod
@kpgarrod
@basarat sorry I'm not able to do that on the offending machine. It seems to me that some files are not getting emitted when the project is built. If I delete all the js files in the project and then build, some js files are still not there until I open and save the .ts version.
Basarat Ali Syed
@basarat
@kpgarrod Perhaps you have more than one "tsconfig.json" files?
kpgarrod
@kpgarrod
@basarat no, only one tsconfig in the project. What I am seeing is that sometimes an individual file is not emitted properly when I save it. I get the emit message, but when I look at the .js file, the changes do not reflect. I can even delete the js file and save again, the new emitted js file does not show my changes!
kpgarrod
@kpgarrod
@basarat I have upgraded Atom to 0.210.0 and a-t to 4.5.16, now build is not working at all for me
There is no progress bar and nothing is emitted
kpgarrod
@kpgarrod
@basarat: sorry, the atom and a-t upgrades were a red herring. There was an error in my code - I had left the property name out of a declaration: "public { show: 'view' };" instead of "public mode = { show: 'view' };". My bad, but it would have been nice to see an error.
Seivan Heidari
@seivan
Has anyone here figured ut a way to import type definitions to all files with just one quick swoop?
Seivan Heidari
@seivan
Found another issue. how would you make an instance of a Component, without JSX and pass parameters? Use TypeScript syntax, or React?
Seivan Heidari
@seivan
I think I found a bug.
helarqjsc
@helarqjsc
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
@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
No abstract methods in TS yet. :(
In particular, no compile time checks.
Basarat Ali Syed
@basarat

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
David Muhr
@davnn
This message was deleted
helarqjsc
@helarqjsc
@seivan @basarat Thanks guys, but why is require used there? Can't it be written as: import atomConfig from "./atomConfig"?
Mohsen Azimi
@mohsen1
Hi, is Atom TypeScript running in the UI thread? Also does Atom support ⌘+Click to jump to code line? If so, can Atom TypeScript support that for go to definition?