Skip to content

Commit

Permalink
Merge pull request espruino#2507 from bobrippling/typescript/json-str…
Browse files Browse the repository at this point in the history
…ingify

JSON.stringify() typescript: make 2nd and 3rd arguments optional
  • Loading branch information
gfwilliams authored Jun 3, 2024
2 parents 52352ef + 7607856 commit 30aa0cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jswrap_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ An Object that handles conversion to and from the JSON data interchange format
"generate" : "jswrap_json_stringify",
"params" : [
["data","JsVar","The data to be converted to a JSON string"],
["replacer","JsVar","This value is ignored"],
["space","JsVar","The number of spaces to use for padding, a string, or null/undefined for no whitespace "]
["replacer","JsVar","[optional] This value is ignored"],
["space","JsVar","[optional] The number of spaces to use for padding, a string, or null/undefined for no whitespace "]
],
"return" : ["JsVar","A JSON string"]
}
Expand Down

0 comments on commit 30aa0cb

Please sign in to comment.