UNPKG

@chubbyjs/psr-http-factory

Version:

Common Http-message factory Interface (PHP FIG PSR-17).

10 lines (9 loc) 323 B
/// <reference types="node" /> import { Duplex } from 'stream'; import * as Stream from 'stream'; interface StreamFactoryInterface { createStream(content: string): Duplex; createStreamFromFile(filename: string): Duplex; createStreamFromResource(stream: Stream): Duplex; } export default StreamFactoryInterface;