mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
18 lines
514 B
TypeScript
18 lines
514 B
TypeScript
// Type definitions for ndjson 2.0
|
|
// Project: https://github.com/maxogden/ndjson
|
|
// Definitions by: Junxiao Shi <https://github.com/yoursunny>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
import { ThroughStream } from "through";
|
|
import { DuplexOptions, Transform } from "stream";
|
|
|
|
export interface ParseOptions {
|
|
strict?: boolean;
|
|
}
|
|
|
|
export function parse(opts?: ParseOptions): ThroughStream;
|
|
|
|
export function stringify(opts?: DuplexOptions): Transform;
|