We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3d15a commit ffe74f6Copy full SHA for ffe74f6
packages/svelte2tsx/svelte-shims.d.ts
@@ -29,7 +29,7 @@ declare class Svelte2TsxComponent<
29
* Causes the callback function to be called whenever the component dispatches an event.
30
* A function is returned that will remove the event listener when called.
31
*/
32
- $on<K extends keyof Events>(event: K, handler: (e: Events[K]) => any): () => void;
+ $on<K extends keyof Events & string>(event: K, handler: (e: Events[K]) => any): () => void;
33
/**
34
* Removes a component from the DOM and triggers any `onDestroy` handlers.
35
0 commit comments