---
url: https://lit-ui-router.dev/reference/lit-ui-router/types/RouterContext.md
---
[lit-ui-router](../index.md) / RouterContext

# Type Alias: RouterContext

```ts
type RouterContext = Context<RouterContextKey, UIRouterLit>;
```

Defined in: [packages/lit-ui-router/src/context.ts:89](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/lit-ui-router/src/context.ts#L89)

The router context key's type — [RouterContextKey](RouterContextKey.md) branded with
[UIRouterLit](../core/UIRouterLit.md), so `@consume({ context: routerContext })` infers the
router.
