Interface.prototype.once - Node documentation
method Interface.prototype.once

Usage in Deno

import { Interface } from "node:readline";
Interface.prototype.once(
event: string,
listener: (...args: any[]) => void,
): this

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

this
Interface.prototype.once(
event: "history",
listener: (history: string[]) => void,
): this

Parameters

event: "history"
listener: (history: string[]) => void

Return Type

this