SearchUpdate
A value a search setter accepts: a new value per key, or undefined to remove the key.
A value a search setter accepts: a new value per key, or undefined to remove the key.
Import#
ts
import type { SearchUpdate } from "@shadow-js/router";
Signature#
ts
type SearchUpdate<S> =
| { readonly [K in keyof S & string]?: SearchValue | undefined }
| ((previous: S) => { readonly [K in keyof S & string]?: SearchValue | undefined })