ivanhofer / sveltekit-typescript-showcase

This repository shows how Svelte and SvelteKit work together with TypeScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to add type support to :then of an #await block?

vsadeghy opened this issue · comments

The title says it all. I have an async function in a .ts file to get some data. I want to use it in an await block but I lose the types in ":then" part of the block.