UNPKG

@zeix/ui-element

Version:

UIElement - a HTML-first library for reactive Web Components

42 lines (21 loc) 639 B
[**@zeix/ui-element**](../README.md) *** [@zeix/ui-element](../globals.md) / isParser # Function: isParser() > **isParser**\<`T`, `E`\>(`value`): `value is Parser<T, E>` Defined in: [src/core/dom.ts:160](https://github.com/zeixcom/ui-element/blob/1e5ebee179adfc4619d3d0e9d2b864d1e97ba797/src/core/dom.ts#L160) Check if a value is a string parser ## Type Parameters ### T `T` *extends* `object` ### E `E` *extends* `Element` = `HTMLElement` ## Parameters ### value `unknown` Value to check if it is a string parser ## Returns `value is Parser<T, E>` True if the value is a string parser, false otherwise ## Since 0.14.0