Skip to content

Commit c6c0164

Browse files
committed
fix URL.toJSON binding
1 parent 86f97ce commit c6c0164

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)