@whatwg-node/node-fetch
Version:
Fetch API implementation for Node
10 lines (9 loc) • 351 B
text/typescript
import { Writable } from 'node:stream';
export declare class PonyfillWritableStream<W = any> implements WritableStream<W> {
writable: Writable;
constructor(underlyingSink?: UnderlyingSink<W> | Writable);
getWriter(): WritableStreamDefaultWriter<W>;
close(): Promise<void>;
abort(reason: any): Promise<void>;
locked: boolean;
}