diff --git a/src/WiredInput.ts b/src/WiredInput.ts index 8cb4793..1071538 100644 --- a/src/WiredInput.ts +++ b/src/WiredInput.ts @@ -1,8 +1,13 @@ import * as React from 'react'; -import { createComponent } from '@lit-labs/react'; +import { createComponent, EventName } from '@lit-labs/react'; import { WiredInput as _WiredInput } from 'wired-elements/lib/wired-input.js'; +type EventTargetWithValue = EventTarget & { value: string }; + +export interface ChangeEvent extends Omit { + target: EventTargetWithValue +} + export const WiredInput = createComponent(React, 'wired-input', _WiredInput, { - onChange: 'input', - onchange: 'input' -}); \ No newline at end of file + onChange: 'input' as EventName, +});