@itwin/presentation-shared
Version:
The package contains types and utilities used across different iTwin.js Presentation packages.
9 lines • 334 B
TypeScript
/**
* An interface that allows subscribing and unsubscribing listeners that are called upon an event.
* @public
*/
export interface Event<TListener extends (...args: any[]) => void = () => void> {
addListener(listener: TListener): () => void;
removeListener(listener: TListener): void;
}
//# sourceMappingURL=Event.d.ts.map