How to properly add types for nested tables in SvelteKit
So based on the example from docs:
type MoviesResponseSuccess = any
tyoe MovieResponse = any
actors
is correctly typed, but actors is just a part of whole reponse
by doing this I losing types for movies
as they becoming an any
type,
Im still learning typescript and may doing an easy mistakes but I basing very much on examples from docs and other sources, and it looks like it should works, but its not.
How to do it properly?
My full +page.server.ts file looks like that:
Am I doing something wrong?1 Reply
I init supabase client like that:
export const supabase = createClient<Database>(supabaseUrl, supabaseAnonKey);