DefinitelyTyped/types/stream-csv-as-json/Stringer.d.ts

32 lines
732 B
TypeScript

/// <reference types="node" />
import { Transform, TransformOptions } from 'stream';
export = Stringer;
declare class Stringer extends Transform {
constructor(options?: Stringer.StringerOptions);
}
declare namespace Stringer {
interface StringerOptions extends TransformOptions {
useValues?: boolean;
useStringValues?: boolean;
separator?: string;
}
function make(options?: StringerOptions): Stringer;
namespace make {
type Constructor = Stringer;
const Constructor: typeof Stringer;
}
function stringer(options?: StringerOptions): Stringer;
namespace stringer {
type Constructor = Stringer;
const Constructor: typeof Stringer;
}
}