Skip to main content
REPLServer.prototype.once - node__repl.d.ts - Node documentation
method REPLServer.prototype.once

Usage in Deno

```typescript import { REPLServer } from "node:node__repl.d.ts"; ```
REPLServer.prototype.once(
event: string,
listener: (...args: any[]) => void,
): this

Parameters

event: string
listener: (...args: any[]) => void

Return Type

this
REPLServer.prototype.once(
event: "close",
listener: () => void,
): this

Parameters

event: "close"
listener: () => void

Return Type

this
REPLServer.prototype.once(
event: "line",
listener: (input: string) => void,
): this

Parameters

event: "line"
listener: (input: string) => void

Return Type

this
REPLServer.prototype.once(
event: "pause",
listener: () => void,
): this

Parameters

event: "pause"
listener: () => void

Return Type

this
REPLServer.prototype.once(
event: "resume",
listener: () => void,
): this

Parameters

event: "resume"
listener: () => void

Return Type

this
REPLServer.prototype.once(
event: "SIGCONT",
listener: () => void,
): this

Parameters

event: "SIGCONT"
listener: () => void

Return Type

this
REPLServer.prototype.once(
event: "SIGINT",
listener: () => void,
): this

Parameters

event: "SIGINT"
listener: () => void

Return Type

this
REPLServer.prototype.once(
event: "SIGTSTP",
listener: () => void,
): this

Parameters

event: "SIGTSTP"
listener: () => void

Return Type

this
REPLServer.prototype.once(
event: "exit",
listener: () => void,
): this

Parameters

event: "exit"
listener: () => void

Return Type

this
REPLServer.prototype.once(
event: "reset",
listener: (context: Context) => void,
): this

Parameters

event: "reset"
listener: (context: Context) => void

Return Type

this