supabase-js v2 Database type creating intellisense issues

I generate the complex Database type using the supabase CLI to be used in my Typescript codebase. This ends up creating a massive intellisense headache, as seen in the screenshot below. Is there a better way to work with the Database type? The problem is the same if I create my own type aliases since the Supabase client is not aware of them.

It's pretty much impossible to read this function signature.
unknown.png
Was this page helpful?