---
url: >-
  https://lit-ui-router.dev/api/ui-router-registry/type-aliases/TypedRouteSnapshot.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:405](https://github.com/simshanith/lit-ui-router/blob/ddf02fc88fff5fb67c4114e4f613e773e2b76df2/packages/ui-router-registry/src/registry.ts#L405)

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.
