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

# Type Alias: TypedRouteSnapshot

```ts
type TypedRouteSnapshot = IsRegistered extends true ? SnapshotBase & {
  current:   | StateDeclaration & {
     name: StateName;
   }
     | undefined;
  params: Readonly<Record<never, never>>;
} : SnapshotBase & {
  current:   | StateDeclaration
     | undefined;
  params: RawParams;
};
```

Defined in: [registry.ts:415](https://github.com/simshanith/lit-ui-router/blob/251586fb2ad2b81ffe14422bb417dff339b69e07/packages/ui-router-registry/src/registry.ts#L415)

A typed view of the route snapshot the reactive packages share. Unnarrowed
it is one type, not a union per state; `includes(name)` narrows it to that
state's subtree.
