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/297c0e8e040b3880ad85a2bc873523a8086f09a3/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`