diff --git a/esm/wrapper.d.ts b/esm/wrapper.d.ts new file mode 100644 index 0000000..2478715 --- /dev/null +++ b/esm/wrapper.d.ts @@ -0,0 +1,18 @@ +export function stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; +export function stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string; + +export interface StringifyOptions { + bigint?: boolean, + circularValue?: string | null | TypeErrorConstructor | ErrorConstructor, + deterministic?: boolean, + maximumBreadth?: number, + maximumDepth?: number, +} + +export namespace stringify { + export function configure(options: StringifyOptions): typeof stringify; +} + +export function configure(options: StringifyOptions): typeof stringify; + +export default stringify;