DefinitelyTyped/types/stream-json/Emitter.d.ts
2018-06-25 22:42:52 -05:00

24 lines
521 B
TypeScript

import { Writable, WritableOptions } from 'stream';
export = Emitter;
declare class Emitter extends Writable {
constructor(options?: WritableOptions);
}
declare namespace Emitter {
function make(options?: WritableOptions): Emitter;
namespace make {
type Constructor = Emitter;
const Constructor: typeof Emitter;
}
function emitter(options?: WritableOptions): Emitter;
namespace emitter {
type Constructor = Emitter;
const Constructor: typeof Emitter;
}
}