(key: OutputOptionalKeys)
| 75 | |
| 76 | // Delete a key from the query |
| 77 | function removeByKey(key: OutputOptionalKeys) { |
| 78 | const search = new URLSearchParams(parsedQuery); |
| 79 | search.delete(String(key)); |
| 80 | router.replace(`${pathname}?${search.toString()}`); |
| 81 | } |
| 82 | |
| 83 | // push item to existing key |
| 84 | function pushItemToKey<J extends ArrayOutputKeys>(key: J, value: ArrayOutput[J][number]) { |
no test coverage detected