diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index 191308bbf2..05c113358e 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -113,6 +113,7 @@ export interface DOMAttributes { 'on:beforeinput'?: EventHandler | undefined | null; onbeforeinput?: EventHandler | undefined | null; onbeforeinputcapture?: EventHandler | undefined | null; + // oninput can be either an InputEvent or an Event, depending on the target element (input, textarea etc). 'on:input'?: FormEventHandler | undefined | null; oninput?: FormEventHandler | undefined | null; oninputcapture?: FormEventHandler | undefined | null;