UNPKG

stream-mock

Version:
11 lines (10 loc) 455 B
/// <reference types="node" /> import { Writable, WritableOptions } from 'stream'; import IWritableMock from './IWritableMock'; export default class ObjectWritableMock extends Writable implements IWritableMock { data: any[]; flatData: any[]; constructor(options?: WritableOptions); _write(chunk: any, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void; _final(callback: (error?: Error | null) => void): void; }