Document that `null` is intentionally rejected by the `searchParams` type
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The runtime sends `null` values as the string `'null'`, but the type stays strict so accidental nulls are caught at compile time. Add a type test for the rejection and runtime tests for the string conversion through direct calls, `.extend()`, and the tuple form.
authored by Sindre Sorhus · committed by Sindre Sorhus · parent e087b0c · Browse files · 3 files+12 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+12 added−0 removed
- tests:+5 added−0 removed
- other:+7 added−0 removed