Skip to main content
default.TransformOptions - node__stream.d.ts - Node documentation
interface default.TransformOptions
extends DuplexOptions

Usage in Deno

```typescript import mod from "node:node__stream.d.ts"; ```

Methods

optional
construct(
this: Transform,
callback: (error?: Error | null) => void,
): void
optional
read(
this: Transform,
size: number,
): void
optional
write(
this: Transform,
chunk: any,
encoding: BufferEncoding,
callback: (error?: Error | null) => void,
): void
optional
writev(
this: Transform,
chunks: Array<{ chunk: any; encoding: BufferEncoding; }>,
callback: (error?: Error | null) => void,
): void
optional
final(
this: Transform,
callback: (error?: Error | null) => void,
): void
optional
destroy(
this: Transform,
error: Error | null,
callback: (error?: Error | null) => void,
): void
optional
transform(
this: Transform,
chunk: any,
encoding: BufferEncoding,
): void
optional
flush(
this: Transform,
): void