UNPKG

json-seq-stream

Version:

application/json-seq support stream / async iterator library

22 lines (21 loc) 696 B
declare const modes: { readonly begin: "begin"; readonly end: "end"; readonly record: "record"; readonly init: "init"; readonly flush: "flush"; }; type Mode = typeof modes[keyof typeof modes]; export type RecordToSequenceStreamOptions = { begin: string; end: string; chunkEndSplit: boolean; fallbackSkip: true | false | ((minChunk: string, mode: Mode, next: Mode) => boolean); }; /** * RS で始まって LF で1行を表す 連続した文字列データを 行データとして整形して返す */ export declare class RecordToSequenceStream extends TransformStream<string, string> { constructor(options: RecordToSequenceStreamOptions); } export {};