ParamMap
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()
.
interface ParamMap {
keys: string[]
has(name: string): boolean
get(name: string): string | null
getAll(name: string): string[]
}
See also
Properties
Property | Description |
---|---|
keys: string[]
|
Read-Only
Names of the parameters in the map. |
Methods
has() |
---|
Reports whether the map contains a given parameter. |
get() |
---|
Retrieves a single value for a parameter. |
getAll() |
---|
Retrieves multiple values for a parameter. |