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

# Type Alias: TypedStoreNarrowing\<N>

```ts
type TypedStoreNarrowing<N> = RouteTypes extends {
  snapshots: infer M;
} ? M[N] extends infer S ? S extends {
  current: unknown;
  params: unknown;
} ? Pick<S, "current" | "params"> : never : never : never;
```

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

The store's `current` and `params` narrowed to state `N`'s subtree: its
`snapshots` entry, one member per state in the subtree.

## Type Parameters

| Type Parameter |
| ------ |
|  `N` *extends* [`TypedStoreName`](TypedStoreName.md) |
