deno.com

method Interface.prototype.on

Overload 1

#Interface.prototype.on(
event: string,
listener: (...args: any[]) => void,
): this

Parameters #

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

Return Type #

this

Overload 2

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

Parameters #

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

Return Type #

this

Overload 3

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

Parameters #

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

Return Type #

this

Overload 4

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

Parameters #

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

Return Type #

this

Overload 5

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

Parameters #

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

Return Type #

this

Overload 6

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

Parameters #

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

Return Type #

this

Overload 7

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

Parameters #

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

Return Type #

this

Overload 8

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

Parameters #

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

Return Type #

this

Overload 9

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

Parameters #

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

Return Type #

this