Skip to main content
WriteStream.prototype.on - tty - Node documentation
method WriteStream.prototype.on

Usage in Deno

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

Parameters

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

Return Type

this
WriteStream.prototype.on(
event: "resize",
listener: () => void,
): this

Parameters

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

Return Type

this