Interface.prototype.emit - Node documentation
method Interface.prototype.emit

Usage in Deno

import { Interface } from "node:readline";
Interface.prototype.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters

event: string | symbol
...args: any[]

Return Type

boolean
Interface.prototype.emit(event: "close"): boolean

Parameters

event: "close"

Return Type

boolean
Interface.prototype.emit(
event: "line",
input: string,
): boolean

Parameters

event: "line"
input: string

Return Type

boolean
Interface.prototype.emit(event: "pause"): boolean

Parameters

event: "pause"

Return Type

boolean
Interface.prototype.emit(event: "resume"): boolean

Parameters

event: "resume"

Return Type

boolean
Interface.prototype.emit(event: "SIGCONT"): boolean

Parameters

event: "SIGCONT"

Return Type

boolean
Interface.prototype.emit(event: "SIGINT"): boolean

Parameters

event: "SIGINT"

Return Type

boolean
Interface.prototype.emit(event: "SIGTSTP"): boolean

Parameters

event: "SIGTSTP"

Return Type

boolean
Interface.prototype.emit(
event: "history",
history: string[],
): boolean

Parameters

event: "history"
history: string[]

Return Type

boolean