UNPKG

stream-chain

Version:

Chain functions, generators, Node streams, and Web streams into a pipeline with backpressure support.

16 lines (12 loc) 361 B
import {none} from '../defs.js'; /** * The flushable function that outputs text in lines. */ type LinesOutput = (value: string | typeof none) => Generator<string, void, unknown>; /** * Creates a flushable function that outputs text in lines. * @returns a splitter function */ declare function lines(): LinesOutput; export default lines; export {lines};