UNPKG

@zeix/ui-element

Version:

UIElement - a HTML-first library for reactive Web Components

38 lines (19 loc) 485 B
[**@zeix/ui-element**](../README.md) *** [@zeix/ui-element](../globals.md) / isState # Function: isState() > **isState**\<`T`\>(`value`): `value is State<T>` Defined in: node\_modules/@zeix/cause-effect/src/state.ts:83 Check if the provided value is a State instance ## Type Parameters ### T `T` *extends* `object` ## Parameters ### value `unknown` value to check ## Returns `value is State<T>` - true if the value is a State instance, false otherwise ## Since 0.9.0