Skip to content

Commit dd3ff5d

Browse files
authored
URLSearchParams.get should return null<string>
[MDN doc](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/get#return_value) > A string if the given search parameter is found; otherwise, null.
1 parent ca5db29 commit dd3ff5d

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)