Skip to main content
Interface.prototype.emit - node__readline.d.ts - Node documentation
method Interface.prototype.emit

Usage in Deno

```typescript import { Interface } from "node:node__readline.d.ts"; ```
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