UNPKG

@zeix/ui-element

Version:

UIElement - a HTML-first library for reactive Web Components

20 lines (10 loc) 527 B
[**@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/1e5ebee179adfc4619d3d0e9d2b864d1e97ba797/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)