mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
34 lines
762 B
TypeScript
34 lines
762 B
TypeScript
/// <reference types="node" />
|
|
|
|
import { Transform, TransformOptions } from 'stream';
|
|
|
|
export = Parser;
|
|
|
|
declare class Parser extends Transform {
|
|
constructor(options?: Parser.ParserOptions);
|
|
}
|
|
|
|
declare namespace Parser {
|
|
interface ParserOptions extends TransformOptions {
|
|
packValues?: boolean;
|
|
packStrings?: boolean;
|
|
streamValues?: boolean;
|
|
streamStrings?: boolean;
|
|
separator?: string;
|
|
}
|
|
|
|
function make(options?: ParserOptions): Parser;
|
|
|
|
namespace make {
|
|
type Constructor = Parser;
|
|
const Constructor: typeof Parser;
|
|
}
|
|
|
|
function parser(options?: ParserOptions): Parser;
|
|
|
|
namespace parser {
|
|
type Constructor = Parser;
|
|
const Constructor: typeof Parser;
|
|
}
|
|
}
|