Edge Functions / Deno does not work with TypeScript

I'm using JetBrains to write some supabase edge functions.
My problem is that TypeScript does not work the way I'm used to.

To showcase my Problem I created a Promise that returns an Objectt {a:string}. When I call this function and try to access the "b" property I would expect TS to yell at me. But nothing happens.
Even if I serve the function, it runs without an error. Is there a reason TypeScript does not enforce the correct types in edge functions?
image.png
Was this page helpful?