method REPLServer.prototype.addListener
Overload 1
#REPLServer.prototype.addListener(event: string,listener: (...args: any[]) => void,): this
events.EventEmitter
- close - inherited from
readline.Interface
- line - inherited from
readline.Interface
- pause - inherited from
readline.Interface
- resume - inherited from
readline.Interface
- SIGCONT - inherited from
readline.Interface
- SIGINT - inherited from
readline.Interface
- SIGTSTP - inherited from
readline.Interface
- exit
- reset
Parameters #
Return Type #
this
Overload 2
#REPLServer.prototype.addListener(event: "close",listener: () => void,): this
Overload 3
#REPLServer.prototype.addListener(event: "line",listener: (input: string) => void,): this
Overload 4
#REPLServer.prototype.addListener(event: "pause",listener: () => void,): this
Overload 5
#REPLServer.prototype.addListener(event: "resume",listener: () => void,): this
Overload 6
#REPLServer.prototype.addListener(event: "SIGCONT",listener: () => void,): this
Overload 7
#REPLServer.prototype.addListener(event: "SIGINT",listener: () => void,): this
Overload 8
#REPLServer.prototype.addListener(event: "SIGTSTP",listener: () => void,): this
Overload 9
#REPLServer.prototype.addListener(event: "exit",listener: () => void,): this