According to the documentation here, the proper way to type actions is to use "ActionReturn".
This type is not available out of the box, but needs to be imported from ''svelte/action". I would suggest to add this to the documentation to make it easier for folks to find it.