Super-Newb Question

Topics: General
May 7, 2014 at 10:22 AM
Edited May 7, 2014 at 10:23 AM
Hello Community,

I am putting together my first nodejs project (via VS2013 Node Tools -- Console Application), and I am having trouble referencing a module that is declared in node.d.ts.

Specifically, I see that there is a module declared in this file called "readline":
 declare module "readline" {
      export interface ReadLine extends NodeEventEmitter {
I am looking to reference this in my app.ts:
declare var module: ReadLine;

But this obviously throws an error. What is the best way to reference this module in my app.ts so that I have access to it?

Thank you,
May 7, 2014 at 10:27 AM
Naturally, I find the answer 5 minutes after posting:
 import readline = require( "readline" );
Marked as answer by MichaelDBang on 5/7/2014 at 3:27 AM