mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +00:00
13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
/**
|
|
* Copyright (c) 2019, Microsoft Corporation (MIT License).
|
|
*/
|
|
import { IDisposable } from './types';
|
|
export interface IEvent<T> {
|
|
(listener: (e: T) => any): IDisposable;
|
|
}
|
|
export declare class EventEmitter2<T> {
|
|
private _listeners;
|
|
private _event?;
|
|
get event(): IEvent<T>;
|
|
fire(data: T): void;
|
|
}
|