Interface: ResolvedBasePath
API / @xmachines/play-router / index / ResolvedBasePath
Defined in: packages/play-url/src/base-path.ts:82
A base path that is ready for a use in both directions.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
params | readonly | Record<string, string> | The values of each :param of the prefix, for the params of a play.route event. The object is empty for a prefix without a param, and for a pattern that nothing resolved. | packages/play-url/src/base-path.ts:93 |
path | readonly | string | The normalized prefix: it starts with /, it carries no trailing /, and it holds no duplicate slash. The empty string means “no prefix”. | packages/play-url/src/base-path.ts:87 |