@@ -38,12 +38,12 @@ type SvelteStore<T> = { subscribe: (run: (value: T) => any, invalidate?: any) =>
3838type SvelteComponent = import ( '*.svelte' ) . default
3939type SvelteEventRecord = Record < string , Event | Event [ ] >
4040type SvelteExtractEvent < T > = T extends any [ ] ? T [ number ] : T ;
41- type SvelteEventOnEvent < T , K extends keyof T > = (
41+ type SvelteOnEvent < T , K extends keyof T > = (
4242 event : K ,
4343 handler : ( e : SvelteExtractEvent < T [ K ] > ) => any
4444) => ( ) => void ;
45- type SvelteAllEvent = ( event : string , handler : ( e : CustomEvent ) => any ) => ( ) => void
46- type SvelteOnEvent < T > = SvelteEventOnEvent < T , keyof T > & SvelteAllEvent
45+ type SvelteRestEvent = ( event : string , handler : ( e : CustomEvent ) => any ) => ( ) => void
46+ type SvelteOnAllEvent < T > = SvelteOnEvent < T , keyof T > & SvelteRestEvent
4747
4848declare var process : NodeJS . Process & { browser : boolean }
4949
@@ -63,7 +63,7 @@ declare function __sveltets_any(dummy: any): any;
6363declare function __sveltets_empty ( dummy : any ) : { } ;
6464declare function __sveltets_componentType ( ) : AConstructorTypeOf < SvelteComponent >
6565declare function __sveltets_invalidate < T > ( getValue : ( ) => T ) : T
66- declare function __sveltets_eventDef < T extends SvelteEventRecord > ( def : T ) : SvelteOnEvent < T >
66+ declare function __sveltets_eventDef < T extends SvelteEventRecord > ( def : T ) : SvelteOnAllEvent < T >
6767declare function __sveltets_mapWindowEvent < K extends keyof HTMLBodyElementEventMap > (
6868 event : K
6969) : HTMLBodyElementEventMap [ K ] ;
@@ -77,4 +77,4 @@ declare function __sveltets_bubbleEventDef<
7777 T extends SvelteEventRecord ,
7878 TEvent ,
7979 TKey extends keyof T = TEvent extends keyof T ? TEvent : string
80- > ( componentDef : SvelteOnEvent < T > , event : TEvent ) : T [ TKey ] ;
80+ > ( on : SvelteOnAllEvent < T > , event : TEvent ) : T [ TKey ] ;
0 commit comments