mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #33195 from OliverJAsh/oja/node/correct-unhandled-rejection-reason-param-4
Node: specify `UnhandledRejectionListener` `reason` param type
This commit is contained in:
Vendored
+1
-1
@@ -681,7 +681,7 @@ declare namespace NodeJS {
|
||||
type ExitListener = (code: number) => void;
|
||||
type RejectionHandledListener = (promise: Promise<any>) => void;
|
||||
type UncaughtExceptionListener = (error: Error) => void;
|
||||
type UnhandledRejectionListener = (reason: any, promise: Promise<any>) => void;
|
||||
type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise<any>) => void;
|
||||
type WarningListener = (warning: Error) => void;
|
||||
type MessageListener = (message: any, sendHandle: any) => void;
|
||||
type SignalsListener = (signal: Signals) => void;
|
||||
|
||||
@@ -1211,7 +1211,7 @@ import * as p from "process";
|
||||
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.addListener("unhandledRejection", (reason: {} | null | undefined, promise: Promise<any>) => { });
|
||||
process.once("warning", (warning: Error) => { });
|
||||
process.prependListener("message", (message: any, sendHandle: any) => { });
|
||||
process.prependOnceListener("SIGBREAK", () => { });
|
||||
|
||||
Reference in New Issue
Block a user