ui-router-effect / RouteTypes
Interface: RouteTypes
Defined in: ui-router-effect/src/route-types.ts:25
Typed route snapshots, filled in by module augmentation. Empty, the snapshot is RouteSnapshot, as it always has been; nothing here emits JavaScript.
An app or a registry such as ui-router-registry fills it in. Its member:
snapshot: the typerouteRef's ref holds, a typed view of RouteSnapshot whoseincludes(name)narrowscurrentandparams.
ts
declare module 'ui-router-effect' {
interface RouteTypes {
snapshot: AppRouteSnapshot;
}
}