-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
24 lines (24 loc) · 719 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export = fine;
/**
*
*
* @param {Array<() => any>} [callbacks=[]]
* @param {FineOptions} [opts={}]
*/
declare function fine(callbacks?: Array<() => any>, opts?: FineOptions): void;
declare namespace fine {
export { validateParameters, ProcessEvents, FineOptions };
}
type FineOptions = {
timeout: number;
events: ProcessEvents;
unref: boolean;
allowDuplicateHandlers: boolean;
};
/**
* @param {number} timeout
* @param {ProcessEvents} events
* @param {Array<() => any>} callbacks
*/
declare function validateParameters(timeout: number, events: ProcessEvents, callbacks: Array<() => any>): void;
type ProcessEvents = Array<"SIGINT" | "SIGTERM" | "uncaughtException" | "unhandledRejection">;