From 2e2402c2d938c0d6f039deff098d8a903ffa4852 Mon Sep 17 00:00:00 2001 From: Tony Truand Date: Tue, 4 Jun 2024 16:43:57 +0200 Subject: [PATCH] Update readme.md Fix "Custom URLSearchParams parsing" referencing request instead of search --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2e63a74..b746ff8 100644 --- a/readme.md +++ b/readme.md @@ -260,7 +260,7 @@ const customParser: ParserFunction = () => { /* ... */ }; // Parse non-standard search params const search = new URLSearchParams(`?ids[]=id1&ids[]=id2`); const { ids } = zx.parseQuery( - request, + search, { ids: z.array(z.string()) } { parser: customParser } );