diff --git a/lib/lib.es5.d.ts b/lib/lib.es5.d.ts index 840fd68278906..670e5ad8440eb 100644 --- a/lib/lib.es5.d.ts +++ b/lib/lib.es5.d.ts @@ -986,7 +986,7 @@ interface JSON { * @param reviver A function that transforms the results. This function is called for each member of the object. * If a member contains nested objects, the nested objects are transformed before the parent object is. */ - parse(text: string, reviver?: (key: any, value: any) => any): any; + parse(text: string, reviver?: (key: any, value: any) => any): object | number | string | boolean | null; /** * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. * @param value A JavaScript value, usually an object or array, to be converted. diff --git a/tests/lib/lib.d.ts b/tests/lib/lib.d.ts index ad17bec673e95..84919788ea97e 100644 --- a/tests/lib/lib.d.ts +++ b/tests/lib/lib.d.ts @@ -974,7 +974,7 @@ interface JSON { * @param reviver A function that transforms the results. This function is called for each member of the object. * If a member contains nested objects, the nested objects are transformed before the parent object is. */ - parse(text: string, reviver?: (key: any, value: any) => any): any; + parse(text: string, reviver?: (key: any, value: any) => any): object | number | string | boolean | null; /** * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. * @param value A JavaScript value, usually an object or array, to be converted.