@@ -1140,20 +1140,23 @@ interface JSON {
1140
1140
* @param text A valid JSON string.
1141
1141
* @param reviver A function that transforms the results. This function is called for each member of the object.
1142
1142
* If a member contains nested objects, the nested objects are transformed before the parent object is.
1143
+ * @throws {SyntaxError } If `text` is not valid JSON.
1143
1144
*/
1144
1145
parse ( text : string , reviver ?: ( this : any , key : string , value : any ) => any ) : any ;
1145
1146
/**
1146
1147
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
1147
1148
* @param value A JavaScript value, usually an object or array, to be converted.
1148
1149
* @param replacer A function that transforms the results.
1149
1150
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
1151
+ * @throws {TypeError } If a circular reference or a BigInt value is found.
1150
1152
*/
1151
1153
stringify ( value : any , replacer ?: ( this : any , key : string , value : any ) => any , space ?: string | number ) : string ;
1152
1154
/**
1153
1155
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
1154
1156
* @param value A JavaScript value, usually an object or array, to be converted.
1155
1157
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
1156
1158
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
1159
+ * @throws {TypeError } If a circular reference or a BigInt value is found.
1157
1160
*/
1158
1161
stringify ( value : any , replacer ?: ( number | string ) [ ] | null , space ?: string | number ) : string ;
1159
1162
}
0 commit comments