@zeix/ui-element
Version:
UIElement - a HTML-first library for reactive Web Components
34 lines (18 loc) • 641 B
Markdown
[**@zeix/ui-element**](../README.md)
***
[@zeix/ui-element](../globals.md) / Context
# Type Alias: Context\<K, V\>
> **Context**\<`K`, `V`\> = `K` & `object`
Defined in: [src/core/context.ts:22](https://github.com/zeixcom/ui-element/blob/f80be4b02c5d1c80817271ddf0fad982e43ad03e/src/core/context.ts#L22)
A context key.
A context key can be any type of object, including strings and symbols. The
Context type brands the key type with the `__context__` property that
carries the type of the value the context references.
## Type declaration
### \_\_context\_\_
> **\_\_context\_\_**: `V`
## Type Parameters
### K
`K`
### V
`V`