DefinitelyTyped/types/ndjson/index.d.ts
Orgad Shaneh be3d1e8ab1
🤖 Merge PR #47006 ndjson: Update definitions to 2.0 by @orgads
serialize was removed. It was an alias to stringify anyway.
2020-08-24 09:47:53 -04:00

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;