mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Strict function variance fixes round 1
This commit is contained in:
@@ -2252,8 +2252,8 @@ namespace process_tests {
|
||||
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) => { });
|
||||
process.on("newListener", (event: string | symbol, listener: Function) => { });
|
||||
process.once("removeListener", (event: string | symbol, listener: Function) => { });
|
||||
|
||||
const listeners = process.listeners('uncaughtException');
|
||||
const oldHandler = listeners[listeners.length - 1];
|
||||
|
||||
Reference in New Issue
Block a user