Skip to content

lit-ui-router-effect / 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

The snapshot routeRef holds: typed by ui-router-effect's RouteTypes when an app or a registry fills it in, a RouteSnapshot otherwise.