1

Closed

__extends function not being added

description

The following code does not add the __extends function. This was not the case in earlier versions of node. I have tried using all the of the previous npm versions of typescript and no luck. Using node.js version 10.12
var events = require('events');

export class Eventer extends events.EventEmitter {
    constructor() {
        super();
    }
}
Closed Jul 12, 2013 at 2:07 AM by danquirk
You need a triple slash reference to node.d.ts as well as to make sure you use 'import' and not 'var' with a require statement. I see the correct behavior after those changes.

comments