mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
793 B
TypeScript
23 lines
793 B
TypeScript
// Type definitions for JSONStream v0.8.0
|
|
// Project: http://github.com/dominictarr/JSONStream
|
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
/// <reference path="../node/node.d.ts" />
|
|
|
|
declare module 'JSONStream' {
|
|
|
|
export interface Options {
|
|
recurse: boolean;
|
|
}
|
|
|
|
export function parse(pattern: any): NodeJS.ReadWriteStream;
|
|
export function parse(patterns: any[]): NodeJS.ReadWriteStream;
|
|
|
|
export function stringify(): NodeJS.ReadWriteStream;
|
|
export function stringify(open: string, sep: string, close: string): NodeJS.ReadWriteStream;
|
|
|
|
export function stringifyObject(): NodeJS.ReadWriteStream;
|
|
export function stringifyObject(open: string, sep: string, close: string): NodeJS.ReadWriteStream;
|
|
}
|