UNPKG

@zeix/ui-element

Version:

UIElement - a HTML-first library for reactive Web Components

22 lines (11 loc) 502 B
[**@zeix/ui-element**](../README.md) *** [@zeix/ui-element](../globals.md) / asBoolean # Function: asBoolean() > **asBoolean**(): [`AttributeParser`](../type-aliases/AttributeParser.md)\<`boolean`\> Defined in: [src/lib/parsers.ts:23](https://github.com/zeixcom/ui-element/blob/297c0e8e040b3880ad85a2bc873523a8086f09a3/src/lib/parsers.ts#L23) Parse a boolean attribute as an actual boolean value ## Returns [`AttributeParser`](../type-aliases/AttributeParser.md)\<`boolean`\> ## Since 0.13.1