stream-chain
Version:
Chain functions as transform streams.
15 lines (11 loc) • 336 B
TypeScript
import {none} from '../defs';
export = lines;
/**
* 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;