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

# Type Alias: ContextType\<T>

```ts
type ContextType<T> = T extends Context<infer _KeyType, infer ValueType> ? ValueType : never;
```

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

Extracts the value type a [Context](Context.md) key carries.

## Type Parameters

| Type Parameter |
| ------ |
|  `T` *extends* [`UnknownContext`](UnknownContext.md) |
