innovationDriveApp/node_modules/memory-streams/index.d.ts
2018-07-08 19:21:40 +10:00

17 lines
505 B
TypeScript

// Describes the package to typescript users.
import {Readable, Writable} from 'stream';
/** A stream that reads from a string given at creation time. */
export declare class ReadableStream extends Readable {
constructor(contents: string);
}
/** A stream that writes into an in-memory buffer. */
export declare class WritableStream extends Writable {
/** Returns the written contents as a string. */
toString(): string;
/** Returns the written contents as a buffer. */
toBuffer(): Buffer;
}