Skip to content

Commit 1c63160

Browse files
authored
Merge pull request #121 from green-labs/fix-url-tojson
fix URL.toJSON binding
2 parents 86f97ce + c6c0164 commit 1c63160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Webapi/Webapi__Url.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type t
4646
@get external searchParams: t => URLSearchParams.t = "searchParams"
4747
@get external username: t => string = "username"
4848
@set external setUsername: (t, string) => unit = "username"
49-
@get external toJson: t => string = "toJson"
49+
@send external toJson: (t, unit) => string = "toJSON"
5050

5151
@val @scope("URL") external createObjectURL: Webapi__File.t => string = "createObjectURL"
5252
@val @scope("URL") external createObjectURLFromBlob: Webapi__Blob.t => string = "createObjectURL"

0 commit comments

Comments
 (0)