mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* add types missing from v1.5.0 * update version number in header * add make array to Stringer
32 lines
768 B
TypeScript
32 lines
768 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;
|
|
makeArray?: 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;
|
|
}
|
|
}
|