ui-router-registry / TypedRouteSnapshot
Type Alias: TypedRouteSnapshot
ts
type TypedRouteSnapshot = IsRegistered extends true ? SnapshotBase & {
current: | StateDeclaration & {
name: StateName;
}
| undefined;
params: Readonly<Record<never, never>>;
} : SnapshotBase & {
current: | StateDeclaration
| undefined;
params: RawParams;
};Defined in: registry.ts:405
A typed view of the route snapshot the reactive packages share. Unnarrowed it is one type, not a union per state; includes(name) narrows it to that state's subtree.