---
url: https://lit-ui-router.dev/v1/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

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

## Type Parameters

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