From dd3ff5de0493363347dfb1286e489f7f1ba45db4 Mon Sep 17 00:00:00 2001 From: Freddy Harris Date: Wed, 3 Dec 2025 16:20:04 +0100 Subject: [PATCH] URLSearchParams.get should return null [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. --- src/URLAPI/URLSearchParams.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/URLAPI/URLSearchParams.res b/src/URLAPI/URLSearchParams.res index 9f0f713..b229d06 100644 --- a/src/URLAPI/URLSearchParams.res +++ b/src/URLAPI/URLSearchParams.res @@ -50,7 +50,7 @@ Returns the first value associated to the given search parameter. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get) */ @send -external get: (urlSearchParams, string) => string = "get" +external get: (urlSearchParams, string) => null = "get" /** Returns all the values association with a given search parameter.