---
url: https://lit-ui-router.dev/api/ui-router-mobx/type-aliases/TypedStoreState.md
---
[ui-router-mobx](../index.md) / TypedStoreState

# Type Alias: TypedStoreState

```ts
type TypedStoreState = RouteTypes extends {
  snapshot: infer S;
} ? Pick<S, "current" | "params"> : {
  current:   | StateDeclaration
     | undefined;
  params: RawParams;
};
```

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

The store's `current` and `params` as [RouteTypes](../interfaces/RouteTypes.md) types them: its
`snapshot` member's, or `StateDeclaration` and `RawParams` until it is
filled in.
