@zeix/ui-element
Version:
UIElement - a HTML-first library for reactive Web Components
20 lines (10 loc) • 527 B
Markdown
[**@zeix/ui-element**](../README.md)
***
[@zeix/ui-element](../globals.md) / ContextType
# Type Alias: ContextType\<T\>
> **ContextType**\<`T`\> = `T` *extends* [`Context`](Context.md)\<infer \_, infer V\> ? `V` : `never`
Defined in: [src/core/context.ts:32](https://github.com/zeixcom/ui-element/blob/f80be4b02c5d1c80817271ddf0fad982e43ad03e/src/core/context.ts#L32)
A helper type which can extract a Context value type from a Context type
## Type Parameters
### T
`T` *extends* [`UnknownContext`](UnknownContext.md)