diff --git a/packages/qwik/src/core/render/jsx/types/jsx-qwik-attributes.ts b/packages/qwik/src/core/render/jsx/types/jsx-qwik-attributes.ts index c70e97bda10..207b5a3eb20 100644 --- a/packages/qwik/src/core/render/jsx/types/jsx-qwik-attributes.ts +++ b/packages/qwik/src/core/render/jsx/types/jsx-qwik-attributes.ts @@ -47,7 +47,7 @@ export type QwikEventMap = { InputCapture: Event; Reset: Event; ResetCapture: Event; - Submit: QwikSubmitEvent | FormData; + Submit: QwikSubmitEvent; SubmitCapture: Event; Invalid: QwikInvalidEvent; InvalidCapture: QwikInvalidEvent; @@ -192,7 +192,7 @@ export interface QwikProps extends PreventDefault { // Allows for Event Handlers to by typed as QwikEventMap[Key] or Event // https://stackoverflow.com/questions/52667959/what-is-the-purpose-of-bivariancehack-in-typescript-types/52668133#52668133 -export type BivariantEventHandler | Event | FormData, EL> = { +export type BivariantEventHandler | Event, EL> = { bivarianceHack(event: T, element: EL): any; }['bivarianceHack'];