Skip to content

Commit

Permalink
Fix first parameter's type of JSON.parse, and fix jsdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-itsheng committed May 1, 2022
1 parent 5f017df commit f90859a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lib.es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1052,11 +1052,11 @@ declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param text A valid JSON string, or can be converted to a valid JSON string.
* @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?: (this: any, key: string, value: any) => any): any;
parse(text: any, 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.
Expand Down

0 comments on commit f90859a

Please sign in to comment.