AI-powered prompt editor.
-
Login to Supabase from your CLI
npx supabase login
-
Generate the types file:
npx supabase gen types typescript --project-id vlbickgjjltwdqecarux --schema public > src/lib/supabase.ts
-
Run prettier:
npm run format
You can use the types by importing the Tables
type from supabase and passing the table name as follows:
Tables<'instance'>