OptionaltypeValue cast. 'array' collects repeated keys as string[]. Default: 'string'.
OptionaldefaultFallback when the key is absent or fails the cast. Values equal to the default are dropped from the URL on write.
OptionalhistoryHow a write to this param lands in browser history. Unset → the convention: 'page' pushes, everything else replaces.
Declaration for a typed query param (
?page=2→useQueryParam('page')).