ui-router-server / matcher / ParamDeclaration
Interface: ParamDeclaration
Defined in: url-matcher.ts:176
A per-param configuration: core's ParamDeclaration members that matching honors, plus dynamic and inherit, which only shape transitions and matching ignores, so one declaration serves a client router too. Relaxation vs core: type also accepts a plain-object ParamType, and value must be static (functions are rejected).
A string squash is regexp source, as in core: it is spliced into the url regexp unescaped, so regexp metacharacters change what the route matches, while format emits it verbatim.
Extends
Pick<CoreParamDeclaration,"value"|"squash"|"dynamic"|"inherit">
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
type? | string | ParamType | Type for params not already typed inline ({id:int}) — a built-in name or a ParamType. | url-matcher.ts:181 |