---
url: >-
  https://lit-ui-router.dev/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](https://github.com/simshanith/lit-ui-router/blob/6e47ef8d8a4b24e99c074fb5c8c9cfaddfdb36a4/packages/ui-router-registry/src/registry.ts#L500)

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.
