@zeix/ui-element
Version:
UIElement - a HTML-first library for reactive Web Components
40 lines (20 loc) • 543 B
Markdown
[**@zeix/ui-element**](../README.md)
***
[@zeix/ui-element](../globals.md) / Parser
# Type Alias: Parser()\<T, E\>
> **Parser**\<`T`, `E`\> = (`element`, `value`, `old?`) => `T`
Defined in: [src/core/dom.ts:58](https://github.com/zeixcom/ui-element/blob/1e5ebee179adfc4619d3d0e9d2b864d1e97ba797/src/core/dom.ts#L58)
## Type Parameters
### T
`T` *extends* `object`
### E
`E` *extends* `Element` = `HTMLElement`
## Parameters
### element
`E`
### value
`string` | `null` | `undefined`
### old?
`string` | `null`
## Returns
`T`