UNPKG

@zeix/ui-element

Version:

UIElement - a HTML-first library for reactive Web Components

40 lines (20 loc) 570 B
[**@zeix/ui-element**](../README.md) *** [@zeix/ui-element](../globals.md) / AttributeParser # Type Alias: AttributeParser()\<T, C\> > **AttributeParser**\<`T`, `C`\> = (`host`, `value`, `old?`) => `T` Defined in: [src/component.ts:63](https://github.com/zeixcom/ui-element/blob/f80be4b02c5d1c80817271ddf0fad982e43ad03e/src/component.ts#L63) ## Type Parameters ### T `T` *extends* `object` ### C `C` *extends* `HTMLElement` = `HTMLElement` ## Parameters ### host `C` ### value `string` | `null` | `undefined` ### old? `string` | `null` ## Returns `T`