parseAsArrayOf for readonly T[]? #751
Labels
feature
New feature or request
parsers/built-in
Related to built-in parsers
parsers/community
Related to community parsers
Context
What's your version of
nuqs
?What framework are you using?
Which version of your framework are you using?
Description
parseAsArrayOf
specifies mutable arrays in it's types, which is slightly annoying if you want to passreadonly T[]
into functions likewithDefault
or returnedsetState
, as they expect you to pass a mutable array type.I'm not sure if making it
readonly
would have any downsides.Reproduction
The text was updated successfully, but these errors were encountered: