Skip to main content
UnhandledRejectionListener - node__process.d.ts - Node documentation
type alias UnhandledRejectionListener

Usage in Deno

```typescript import { type UnhandledRejectionListener } from "node:node__process.d.ts"; ```
Most of the time the unhandledRejection will be an Error, but this should not be relied upon as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.

Definition

(
reason: unknown,
promise: Promise<unknown>,
) => void