mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
* remove catch-all variants for on/once/... in Process
* add "newListener" | "removeListener" variants * correct emit() functions for "cluster" * add some tests
This commit is contained in:
@@ -1892,6 +1892,17 @@ namespace process_tests {
|
||||
}
|
||||
{
|
||||
process.on("message", (req: any) => { });
|
||||
process.addListener("beforeExit", (code: number) => { });
|
||||
process.once("disconnect", () => { });
|
||||
process.prependListener("exit", (code: number) => { });
|
||||
process.prependOnceListener("rejectionHandled", (promise: Promise<any>) => { });
|
||||
process.on("uncaughtException", (error: Error) => { });
|
||||
process.addListener("unhandledRejection", (reason: any, promise: Promise<any>) => { });
|
||||
process.once("warning", (warning: Error) => { });
|
||||
process.prependListener("message", (message: any, sendHandle: any) => { });
|
||||
process.prependOnceListener("SIGBREAK", () => { });
|
||||
process.on("newListener", (event: string, listener: Function) => { });
|
||||
process.once("removeListener", (event: string, listener: Function) => { });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user