Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Apr 25 01:53
    kaiyoma opened #1546
  • Apr 16 13:17
    jaqmol opened #1545
  • Apr 16 08:55
    Superkooka opened #1544
  • Apr 11 12:20
    lierdakil closed #1543
  • Apr 11 10:03
    lierdakil labeled #1543
  • Apr 10 22:15
    andb0t opened #1543
  • Mar 20 00:01
    github-actions[bot] closed #1510
  • Mar 05 00:02
    github-actions[bot] labeled #1510
  • Feb 20 13:28
    lierdakil closed #1538
  • Feb 20 13:25
    lierdakil closed #894
  • Feb 20 13:23
    lierdakil closed #1483
  • Feb 20 13:23
    lierdakil closed #1540
  • Feb 20 13:18
    lierdakil closed #1511
  • Feb 19 01:56
    Edweis closed #1542
  • Feb 19 01:47
    Edweis opened #1542
  • Feb 19 00:02
    github-actions[bot] labeled #894
  • Feb 04 02:10
    firejune closed #1537
  • Feb 01 23:39
    lierdakil labeled #1540
  • Jan 28 02:28
    firejune synchronize #1537
  • Jan 28 02:14
    firejune synchronize #1537
Stephen Baynham
Yeah, sorry, I wasn't using it before I just wanted to see if it was picking up the DTS instead somehow
Okay, thanks.
I understand how this should work now, thanks a ton!
Basarat Ali Syed
no worries :rose:
Gerasimos (Makis) Maropoulos
basarat I have a problem !
look at DefinitelyTyped room :/
Basarat Ali Syed
^ Done :rose:
Jari Pennanen
Hello! Is it possible to get node auto completion without TSD files? I'm thinking about writing my one-off-script in TS and node.
I started in Python, but even though this ends up being like ~200 lines at max, it would be nice to have auto-completion :)
Basarat Ali Syed

Is it possible to get node auto completion without TSD files

@Ciantic Not easily. Best solution seems adding integration with TSD to download files for you on demand. PS: I'm heading home right now :rose:

Jari Pennanen
yeah, I think the tsd is not that cumbersome, for some reason I just wanted to keep all the details of the script in single file, but I think it's a useless requirement
Jari Pennanen
well :D I think I'll go with Python: tsd install csv >> zero results
I always forget, everybody is not using TS in npm
Miguel Couto
in windows how do i do the sync ?
i did some changes in my ts files outside of atom
when i press F6 it gives bugs of files that no longer exists
i know i can close and open atom to fix it bug in the Sync sugests i can force a refresh
but "ctrol+'" does nothing
Basarat Ali Syed
@Mig1st4ck ctrl+' should work
Stephen Baynham
Hi, I included in my tsconfig.json, and I'm trying to pull it into a file with import RequestAPI from 'request';
However, I'm getting an error "Module 'request' has no default export."
But it does, it's right there in the file.
Oh I see- I'm getting a different error from gulp, that it can't find the module.
That's a little misleading.
Stephen Baynham
Oh it's because it's an ES5 definition file
Is there possible to use as helper for intellisense if I am coding only JS?
Basarat Ali Syed
@hellboy81 its been requested before : TypeStrong/atom-typescript#315 but not supported yet.
I'm keeping an eye on the TypeScript code to see if it officially becomes any easier : Microsoft/TypeScript#4094 / Microsoft/TypeScript#4789 :rose:
Rob Yoder
Anyone know what's up with the URL definition in lib.d.ts? I'm getting Cannot use 'new' with an expression whose type lacks a call or construct signature. when trying to run new URL('') which should be perfectly valid
interface URL {
    createObjectURL(object: any, options?: ObjectURLOptions): string;
    revokeObjectURL(url: string): void;
declare var URL: URL;
Not sure why URL is defined this way. Anyone else?
Basarat Ali Syed
@robyoder because its not supported in all browsers and very importantly (from ms perspective) IE :
Rob Yoder
Sure, but I should be able to check that and use it if it is supported. As it is, I just get an error. I can't redefine it either since it's already been declared. @basarat
Basarat Ali Syed
@robyoder you can amend it easily. Just add to the URL interface. See for examples :rose:
Rob Yoder

Thanks. I've done that before, but I was getting mixed up with it earlier, overcomplicating things and it wasn't seeming to work. Just defining

interface URL {
    new(url: string): any;

is a good enough hack for now

I am having an issue since about 6.06 with 'go to declaration'. It takes me to the end of the file where the function is declared, not the declaration of the function itself. Anybody else?
Basarat Ali Syed
@kpgarrod ^ works fine here. Would need a repro from you if you are experiencing it still. Might be an edge case bug in TypeScript language service :rose:
Ranjit Jhala
This message was deleted

Hi all, my atom-typescript mysteriously stopped working with this:

In file included from ../
In file included from ../node_modules/nan/nan.h:74:
In file included from ../node_modules/nan/nan_new.h:181:
../node_modules/nan/nan_implementation_12_inl.h:172:66: error: too many arguments to function call, expected at most 2, have 4
  return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
         ~~~~~~~~~~~~~~~~~~                                      ^~~~~~~~~~
/Users/rjhala/.atom/.node-gyp/.node-gyp/0.30.6/deps/v8/include/v8.h:4515:3: note: 'New' declared here
  static Local<Signature> New(
1 error generated.
make: *** [Release/] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "node" "/Applications/" "rebuild"
gyp ERR! cwd /Users/rjhala/.atom/packages/atom-typescript/node_modules/grunt-ts/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 

npm ERR! Darwin 14.5.0
npm ERR! argv "/Applications/" "/Applications/" "--globalconfig" "/Users/rjhala/.atom/.apm/.apmrc" "--userconfig" "/Users/rjhala/.atom/.apmrc" "rebuild" "--target=0.30.6" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! fsevents@0.3.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fsevents@0.3.5 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the fsevents package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls fsevents
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/rjhala/.atom/packages/atom-typescript/npm-debug.log

Any idea whats going on?

Basarat Ali Syed
@ranjitjhala Has to be some library (here : that does file watching ... and is using an older version of fsevents that no longer compiles.
@ranjitjhala a longer log + issue report would help :rose:
Ranjit Jhala
@basarat -- thanks, will post issue asap!
Ranjit Jhala
Hi @basarat -- just posted TypeStrong/atom-typescript#583
Basarat Ali Syed
@ranjitjhala reply was posted in issue
Help! My atom-typescript is broken. I just updated Atom to 1.0.13 and atom-typescript to 6.0.10 and I get a bug icon in the bottom-right
"Some installed packages could not be loaded because they contain native modules that were compiled for an earlier version of Atom.Rebuild Packages"
I tried rebuilding packages but it didn't work
tried removing and reinstalling the plugin - that didn't work either
Ranjit Jhala
@kpgarrod -- you might be having the same issue as me. (I had similar symptoms, click the "rebuild packages" to see if its this or something else)
Basarat Ali Syed
@kpgarrod / @ranjitjhala should be fixed with 6.0.12 :rose:
Just more info : Got lucky this time as it wasn't a core dependency and just devDependencies (we did have dependency on chokidar at some point but decided to just use fs and only watch tsconfig.json)