-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating types for a postgresql array results in Typescript unknown property #581
Comments
Thanks for reporting this @tom-at-pixel. I'm going to transfer this to the postgres-meta repo and someone there can give you a hand. |
@tom-at-pixel @gregnr is this issue fixed already? i dont seem to be able to reproduce. |
@mahendraHegde Sorry for the delay in response. This is still an issue. To repro, open a query editor in Supabase Studio and run this code:
Then generate the types on the client-side:
The generated types include:
I would expect |
I got the same problem, any updates? |
…e types (#703) * fix: array types should not unknown fixes #581 * chore: update test random ids * chore: keep pgType arg non-undefined It should be the resposibility of the caller to make sure the argument is defined * chore: clarify type name --------- Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>
Bug report
Describe the bug
Generating TypeScript types for a Supabase project is resulting in unexpected
unknown
properties. Specifically, any array type (e.g.text[]
) generatesunknown
(instead of e.g.string[]
).To Reproduce
text[]
in Supabase:Observe the
unknown
property in the generated TypeScript types:Expected behavior
I would expect a
string[]
property in the generated types:System information
The text was updated successfully, but these errors were encountered: