method Duplex.prototype.onimport { Duplex } from "https://dotland.deno.dev/std@0.92.0/node/stream.ts"; on(event: | "close" | "end" | "pause" | "readable" | "resume", listener: () => void): thison(event: "data", listener: (chunk: any) => void): thison(event: "error", listener: (err: Error) => void): thison(event: string | symbol, listener: (...args: any[]) => void): thisParametersevent: | "close" | "end" | "pause" | "readable" | "resume"listener: () => voidReturnsthisParametersevent: "data"listener: (chunk: any) => voidReturnsthisParametersevent: "error"listener: (err: Error) => voidReturnsthisParametersevent: string | symbollistener: (...args: any[]) => voidReturnsthis