Closed f-elix closed 3 months ago
The code generation templates are in postgres-meta repo https://github.com/supabase/postgres-meta/blob/master/src/server/templates/typescript.ts. Feel free to tag me if you want to make a PR.
Thank you so much! Opening a PR now.
There are already the
Tables
,Enums
, etc. helper types to easily extract types from a database schema, which is super convenient. I suggest adding aCompositeTypes
helper to do the same thing for composite types.I would open a PR myself but I no nothing about
go
and I couldn't find where the CLI generates those types, but the code is pretty similar to the other helpers: