stream-sync
Version:
Synchronous stream library. Includes FileReadStreamSync
15 lines (14 loc) • 493 B
TypeScript
/// <reference types="node" />
import { WritableOptions } from './WritableOptions';
import stream from "stream";
export declare class Writable extends stream.Writable {
destroyed: boolean;
writable: boolean;
_writableState: WritableOptions;
constructor(opts?: WritableOptions);
destroy(): this;
end(): this;
write(chunk: any): boolean;
_write(chunk: any, encoding?: BufferEncoding): void;
setDefaultEncoding(encoding: BufferEncoding): this;
}