Skip to content

Commit fcf10f9

Browse files
authored
(fix) make on:sveltekit:xy events optional (#1003)
1 parent 11074fa commit fcf10f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte2tsx/svelte-jsx.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,9 @@ declare namespace svelte.JSX {
714714
readonly online?: Window['navigator']['onLine'];
715715

716716
// Transformed from on:sveltekit:xy
717-
'onsveltekit:start': EventHandler<CustomEvent, Window>;
718-
'onsveltekit:navigation-start': EventHandler<CustomEvent, Window>;
719-
'onsveltekit:navigation-end': EventHandler<CustomEvent, Window>;
717+
'onsveltekit:start'?: EventHandler<CustomEvent, Window>;
718+
'onsveltekit:navigation-start'?: EventHandler<CustomEvent, Window>;
719+
'onsveltekit:navigation-end'?: EventHandler<CustomEvent, Window>;
720720

721721
ondevicelight?: EventHandler<Event, Window>;
722722
onbeforeinstallprompt?: EventHandler<Event, Window>;

0 commit comments

Comments
 (0)