ui-router-mobx / RouteTypes
Interface: RouteTypes
Defined in: route-types.ts:29
Typed store fields, filled in by module augmentation. Empty, the store's current is a StateDeclaration and its params are RawParams, and nothing here emits JavaScript.
An app or a registry such as ui-router-registry fills it in. Its members:
snapshot: a route snapshot type whosecurrentandparamstype the store's fields, and whoseincludesparameter types the targetsRouterStore.includestakes beside asnapshotsname.snapshots: keyed by state name, the snapshot narrowed to that state's subtree.RouterStore.includes(name)narrows the store'scurrentandparamsto it.
ts
declare module 'ui-router-mobx' {
interface RouteTypes {
snapshot: AppRouteSnapshot;
snapshots: { 'contacts.contact': ContactSnapshot };
}
}