Visitar URL original
Fix #104 - allow `null` as replacer value · WebReflection/flatted@50a61a9 · GitHub
Skip to content

Commit 50a61a9

Browse files
committed
Fix #104 - allow null as replacer value
1 parent 8aa64f4 commit 50a61a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎types/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export function parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
2-
export function stringify(value: any, replacer?: (string | number)[] | ((this: any, key: string, value: any) => any), space?: string | number | undefined): string;
2+
export function stringify(value: any, replacer?: (string | number)[] | null | undefined | ((this: any, key: string, value: any) => any), space?: string | number | undefined): string;
33
export function toJSON(value: any): any;
44
export function fromJSON(value: any): any;

0 commit comments

Comments
 (0)