Skip to content

Commit 2090589

Browse files
authored
Merge pull request #180 from Freddy03h/patch-1
URLSearchParams.get should return null<string>
2 parents ca5db29 + dd3ff5d commit 2090589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/URLAPI/URLSearchParams.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Returns the first value associated to the given search parameter.
5050
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
5151
*/
5252
@send
53-
external get: (urlSearchParams, string) => string = "get"
53+
external get: (urlSearchParams, string) => null<string> = "get"
5454

5555
/**
5656
Returns all the values association with a given search parameter.

0 commit comments

Comments
 (0)