mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
31 lines
739 B
TypeScript
31 lines
739 B
TypeScript
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;
|
|
useKeyValues?: boolean;
|
|
useStringValues?: boolean;
|
|
useNumberValues?: boolean;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|