Describe the bug
When using a custom schema that I have successfully exposed to the data API, the gen types typescript script generates a file that still defaults to "public" for the Tables<'row'> shorthand.
To Reproduce
Steps to reproduce the behavior:
Create custom schema and expose it to the data API following instructions here
In JS client, run npx --yes supabase gen types typescript --project-id "<ID>" --schema custom_schema > ./path/to/db/index.ts
Observe the line type PublicSchema = Database[Extract<keyof Database, 'public'>];
Expected behavior
Line type PublicSchema = Database[Extract<keyof Database, 'public'>]; should be type PublicSchema = Database[Extract<keyof Database, 'custom_schema'>];
Screenshots
N/A
System information
Rerun the failing command with --create-ticket flag.
Version of CLI: 1.207.9
Versions of services:
Additional context
If applicable, add any other context about the problem here.
N/A
Describe the bug When using a custom schema that I have successfully exposed to the data API, the
gen types typescript
script generates a file that still defaults to "public" for theTables<'row'>
shorthand.To Reproduce Steps to reproduce the behavior:
npx --yes supabase gen types typescript --project-id "<ID>" --schema custom_schema > ./path/to/db/index.ts
type PublicSchema = Database[Extract<keyof Database, 'public'>];
Expected behavior Line
type PublicSchema = Database[Extract<keyof Database, 'public'>];
should betype PublicSchema = Database[Extract<keyof Database, 'custom_schema'>];
Screenshots N/A
System information Rerun the failing command with
--create-ticket
flag.Additional context If applicable, add any other context about the problem here. N/A