---
url: https://lit-ui-router.dev/api/ui-router-mobx/interfaces/RouteTypes.md
---
[ui-router-mobx](../index.md) / RouteTypes

# Interface: RouteTypes

Defined in: [route-types.ts:29](https://github.com/simshanith/lit-ui-router/blob/1109c63617d74f05a59f57777e3cd930c2380cf2/packages/ui-router-mobx/src/route-types.ts#L29)

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 whose `current` and `params` type the
  store's fields, and whose `includes` parameter types the targets
  `RouterStore.includes` takes beside a `snapshots` name.
* `snapshots`: keyed by state name, the snapshot narrowed to that state's
  subtree. `RouterStore.includes(name)` narrows the store's `current` and
  `params` to it.

```ts
declare module 'ui-router-mobx' {
  interface RouteTypes {
    snapshot: AppRouteSnapshot;
    snapshots: { 'contacts.contact': ContactSnapshot };
  }
}
```
