Commit 69292ef already took care of the type issue reported in #2001. While looking into the type error, I noticed the custom events needed some adjustment for better type safety.
I also realized the action wasn’t supporting the new Svelte 5 event listener syntax (onbefore), so I’ve added support for both on:before and onstart (and all other events) in this PR.
Commit 69292ef already took care of the type issue reported in #2001. While looking into the type error, I noticed the custom events needed some adjustment for better type safety.
I also realized the action wasn’t supporting the new Svelte 5 event listener syntax (
onbefore
), so I’ve added support for bothon:before
andonstart
(and all other events) in this PR.Before
Svelte 4 syntax (incorrect)
Svelte 5 syntax (missing)
After
Svelte 4 syntax
Svelte 5 syntax
Closes #2001