@@ -971,14 +971,14 @@ interface JSON {
971
971
* @param replacer A function that transforms the results.
972
972
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
973
973
*/
974
- stringify ( value : any , replacer : ( key : string , value : any ) => any , space : any ) : string ;
974
+ stringify ( value : any , replacer : ( key : string , value : any ) => any , space : string | number ) : string ;
975
975
/**
976
976
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
977
977
* @param value A JavaScript value, usually an object or array, to be converted.
978
978
* @param replacer Array that transforms the results.
979
979
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
980
980
*/
981
- stringify ( value : any , replacer : any [ ] , space : any ) : string ;
981
+ stringify ( value : any , replacer : any [ ] , space : string | number ) : string ;
982
982
}
983
983
/**
984
984
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
@@ -1181,4 +1181,4 @@ interface PromiseLike<T> {
1181
1181
*/
1182
1182
then < TResult > ( onfulfilled ?: ( value : T ) => TResult | PromiseLike < TResult > , onrejected ?: ( reason : any ) => TResult | PromiseLike < TResult > ) : PromiseLike < TResult > ;
1183
1183
then < TResult > ( onfulfilled ?: ( value : T ) => TResult | PromiseLike < TResult > , onrejected ?: ( reason : any ) => void ) : PromiseLike < TResult > ;
1184
- }
1184
+ }
0 commit comments