| 1556 | } |
| 1557 | |
| 1558 | export class BaseRoute< |
| 1559 | in out TRegister = Register, |
| 1560 | in out TParentRoute extends AnyRoute = AnyRoute, |
| 1561 | in out TPath extends string = '/', |
| 1562 | in out TFullPath extends string = ResolveFullPath<TParentRoute, TPath>, |
| 1563 | in out TCustomId extends string = string, |
| 1564 | in out TId extends string = ResolveId<TParentRoute, TCustomId, TPath>, |
| 1565 | in out TSearchValidator = undefined, |
| 1566 | in out TParams = ResolveParams<TPath>, |
| 1567 | in out TRouterContext = AnyContext, |
| 1568 | in out TRouteContextFn = AnyContext, |
| 1569 | in out TBeforeLoadFn = AnyContext, |
| 1570 | in out TLoaderDeps extends Record<string, any> = {}, |
| 1571 | in out TLoaderFn = undefined, |
| 1572 | in out TChildren = unknown, |
| 1573 | in out TFileRouteTypes = unknown, |
| 1574 | in out TSSR = unknown, |
| 1575 | in out TServerMiddlewares = unknown, |
| 1576 | in out THandlers = undefined, |
| 1577 | > { |
| 1578 | isRoot: TParentRoute extends AnyRoute ? true : false |
| 1579 | options: RouteOptions< |
| 1580 | TRegister, |
| 1581 | TParentRoute, |
| 1582 | TId, |
| 1583 | TCustomId, |
| 1584 | TFullPath, |
| 1585 | TPath, |
| 1586 | TSearchValidator, |
| 1587 | TParams, |
| 1588 | TLoaderDeps, |
| 1589 | TLoaderFn, |
| 1590 | TRouterContext, |
| 1591 | TRouteContextFn, |
| 1592 | TBeforeLoadFn, |
| 1593 | TSSR, |
| 1594 | TServerMiddlewares, |
| 1595 | THandlers |
| 1596 | > |
| 1597 | |
| 1598 | // The following properties are set up in this.init() |
| 1599 | parentRoute!: TParentRoute |
| 1600 | private _id!: TId |
| 1601 | private _path!: TPath |
| 1602 | private _fullPath!: TFullPath |
| 1603 | private _to!: TrimPathRight<TFullPath> |
| 1604 | |
| 1605 | public get to() { |
| 1606 | return this._to |
| 1607 | } |
| 1608 | |
| 1609 | public get id() { |
| 1610 | return this._id |
| 1611 | } |
| 1612 | |
| 1613 | public get path() { |
| 1614 | return this._path |
| 1615 | } |
nothing calls this directly
no test coverage detected