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

# Type Alias: TypedRouteSnapshot

```ts
type TypedRouteSnapshot = ReturnType<typeof routeRef> extends SubscriptionRef.SubscriptionRef<infer S> ? S : never;
```

Defined in: [lit-ui-router-effect/src/router-ref-controller.ts:16](https://github.com/simshanith/lit-ui-router/blob/1109c63617d74f05a59f57777e3cd930c2380cf2/packages/lit-ui-router-effect/src/router-ref-controller.ts#L16)

The snapshot [routeRef](../functions/routeRef.md) holds: typed by `ui-router-effect`'s
`RouteTypes` when an app or a registry fills it in, a
`RouteSnapshot` otherwise.
