Skip to content

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 type routeRef's ref holds, a typed view of RouteSnapshot whose includes(name) narrows current and params.
ts
declare module 'ui-router-effect' {
  interface RouteTypes {
    snapshot: AppRouteSnapshot;
  }
}