These are chat archives for TypeStrong/atom-typescript

6th
Mar 2015
Ronn
@ronnross
Mar 06 2015 18:50
Hi brand new to TS and currently using atom-typescript to help learn.
I have a simple node project that includes a few .ts files and underscore.
I have a file where I'm trying to include underscore that I got from npm and it looks like so

/// <reference path="typings/node.d.ts" />
/// <reference path="typings/underscore.d.ts" />

import _ = require('underscore');
I have the correct .d.ts files for the libs I want, but I'm getting an error for example node.d.ts not found
Should I just be using the commonjs pattern instead of TS imports?
Basarat Ali Syed
@basarat
Mar 06 2015 20:36
Ts imports is commonjs (our default). Is that a runtime error? Or a compile time error?
Ronn
@ronnross
Mar 06 2015 20:43
Compile time. Even if I put the d.ts files in the same directory and using a path like I would with commonjs /// <reference path="./node.d.ts" /> I still get the same error, when I try to build.
Basarat Ali Syed
@basarat
Mar 06 2015 21:49
@ronnross Can you share a repo?
Basarat Ali Syed
@basarat
Mar 06 2015 22:17
working on TypeStrong/atom-typescript#163
Basarat Ali Syed
@basarat
Mar 06 2015 22:52
working on snippets TypeStrong/atom-typescript#155