Strict function variance fixes round 1

This commit is contained in:
Nathan Shively-Sanders
2017-10-02 15:50:34 -07:00
parent 2fba16f44b
commit b8ea87c68e
27 changed files with 273 additions and 182 deletions

View File

@@ -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];