Skip to main content
Process.prependListener - node__process.d.ts - Node documentation
method Process.prependListener

Usage in Deno

```typescript import { type Process } from "node:node__process.d.ts"; ```
Process.prependListener(
event: "beforeExit",
): this

Parameters

event: "beforeExit"

Return Type

this
Process.prependListener(
event: "disconnect",
): this

Parameters

event: "disconnect"

Return Type

this
Process.prependListener(
event: "exit",
listener: ExitListener,
): this

Parameters

event: "exit"
listener: ExitListener

Return Type

this
Process.prependListener(
event: "rejectionHandled",
): this

Parameters

event: "rejectionHandled"

Return Type

this
Process.prependListener(
event: "uncaughtException",
): this

Parameters

event: "uncaughtException"

Return Type

this
Process.prependListener(
event: "uncaughtExceptionMonitor",
): this

Parameters

event: "uncaughtExceptionMonitor"

Return Type

this
Process.prependListener(
event: "unhandledRejection",
): this

Parameters

event: "unhandledRejection"

Return Type

this
Process.prependListener(
event: "warning",
listener: WarningListener,
): this

Parameters

event: "warning"
listener: WarningListener

Return Type

this
Process.prependListener(
event: "message",
listener: MessageListener,
): this

Parameters

event: "message"
listener: MessageListener

Return Type

this
Process.prependListener(
event: Signals,
listener: SignalsListener,
): this

Parameters

event: Signals
listener: SignalsListener

Return Type

this
Process.prependListener(
event: "multipleResolves",
): this

Parameters

event: "multipleResolves"

Return Type

this
Process.prependListener(
event: "worker",
listener: WorkerListener,
): this

Parameters

event: "worker"
listener: WorkerListener

Return Type

this