---
url: >-
  https://lit-ui-router.dev/v1/reference/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:500

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.
