method WriteStream.prototype.on Usage in Denoimport { 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