Hardcoded metadata resulting in broken TypeScript type generation from the Supabase CLI #716
Closed
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
For differing PostgreSQL schemas outside of schema
public
, the hardcoded Postgres metadata for schemapublic
does not work, and creates a TypeScript type error.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
npx supabase start
npx supabase db reset
npx supabase gen types typescript --local --schema openai > src/types/supabase-schema-openai-types.ts
Expected behavior
A TypeScript file describing all of the tables, enums, and otherwise TypeScript-migrated models that I can use in a TypeScript project.
However, instead I am receiving this result:
Screenshots
N/A
System information
Additional context
Described issue to Supabase support and they confirmed it's an issue with the metadata. Happy to take a shot at updating this and learning to become a contributor.
The text was updated successfully, but these errors were encountered: