Skip to content

Commit

Permalink
Fix #508: JSON.Stringify replacer argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Dec 7, 2015
1 parent b5158ec commit eca4412
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stdlib/WebSharper.JavaScript/Ecma.fs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,11 @@ module Definition =
|+> Static
[
"parse" => T<string> * !?T<obj->obj->bool>?reviver ^-> T<obj>
"stringify" => T<obj>?value * !?(T<obj->obj> + (Type.ArrayOf T<obj>))?replacer * !?(T<string> + T<int>)?space ^-> T<string>
"stringify" => T<obj>?value * (T<string>*T<obj>^->T<obj>)?replacer ^-> T<string>
|> WithInteropInline (fun p -> sprintf "JSON.stringify(%s,%s)" (p"value") (p"replacer"))
"stringify" => T<obj>?value * (T<string>*T<obj>^->T<obj>)?replacer * (T<string> + T<int>)?space ^-> T<string>
|> WithInteropInline (fun p -> sprintf "JSON.stringify(%s,%s,%s)" (p"value") (p"replacer") (p "space"))
"stringify" => T<obj>?value * !?(Type.ArrayOf T<obj>)?replacer * !?(T<string> + T<int>)?space ^-> T<string>
]

let Namespaces =
Expand Down

0 comments on commit eca4412

Please sign in to comment.