source: trip-planner-front/node_modules/@tootallnate/once/dist/index.d.ts@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 508 bytes
Line 
1/// <reference types="node" />
2import { EventEmitter } from 'events';
3declare function once<T>(emitter: EventEmitter, name: string): once.CancelablePromise<T>;
4declare namespace once {
5 interface CancelFunction {
6 (): void;
7 }
8 interface CancelablePromise<T> extends Promise<T> {
9 cancel: CancelFunction;
10 }
11 type CancellablePromise<T> = CancelablePromise<T>;
12 function spread<T extends any[]>(emitter: EventEmitter, name: string): once.CancelablePromise<T>;
13}
14export = once;
Note: See TracBrowser for help on using the repository browser.