TypeScript
Importing EventEmitter

by Benny Neugebauer

import EventEmitter = NodeJS.EventEmitter;

export default class MyClass extends EventEmitter  {
  constructor() {
    super();
  }
}

import EventEmitter = require("events");

export default class MyClass extends EventEmitter  {
  constructor() {
    super();
  }
}

import EventEmitter from 'events'

Johannes Hund

Sign in to comment!