mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
521 B
TypeScript
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;
|
|
}
|
|
}
|