@input event in vue throws error when typing the event as 'InputEvent'.
Type '(event: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
Types of parameters 'event' and 'payload' are incompatible.ts(2322)
__VLS_types.ts(107, 56): The expected type comes from property 'input' which is declared here on type 'EventObject<undefined, "input", {}, ((payload: Event) => void) | undefined>'
Typing the event as 'Event' doesn't work because we cannot access event.data as it does not exist on type 'Event' https://i.stack.imgur.com/CR1S9.png
We want this to work but it throws the above error
Expecting @input to not throw typescript error when typing the event as 'InputEvent'.