ParamMap
interface
A map that provides access to the required and optional parameters
specific to a route.
The map supports retrieving a single value with get()
or multiple values with getAll()
.
API
interface ParamMap {}
has
boolean
Reports whether the map contains a given parameter.
@paramname
string
The parameter name.
@returns
boolean
get
string | null
Retrieves a single value for a parameter.
@paramname
string
The parameter name.
@returns
string | null
getAll
string[]
Retrieves multiple values for a parameter.
@paramname
string
The parameter name.
@returns
string[]
keys
string[]
Names of the parameters in the map.
Jump to details