Revert "Add undefined to JSON.stringify return type (#51897)" (#52307)

This commit is contained in:
Nathan Shively-Sanders
2023-01-19 09:24:31 -08:00
committed by GitHub
parent 38b8f59ff6
commit ecaf6d91a7
21 changed files with 59 additions and 106 deletions

7
src/lib/es5.d.ts vendored
View File

@@ -1117,13 +1117,6 @@ interface JSON {
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: Function | Symbol | undefined, replacer?: (number | string)[] | null, space?: string | number): undefined;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.