Skip to content

Support composite types #399

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

Closed
hmnd opened this issue Oct 21, 2022 · 2 comments · Fixed by #459
Closed

Support composite types #399

hmnd opened this issue Oct 21, 2022 · 2 comments · Fixed by #459
Labels
enhancement New feature or request released

Comments

@hmnd
Copy link

hmnd commented Oct 21, 2022

Feature request

Is your feature request related to a problem? Please describe.

TypeScript type generation does not currently support custom data types. This is particularly an issue for me because it results in my function having an 'unknown' return type instead of my custom data type.

Describe the solution you'd like

Support for custom data types in generated TypeScript types.

Additional context

Example data type I have as the return type of my function:

CREATE TYPE autocomplete_result as (
   id text,
   label text,
   similarity real
);
@hmnd hmnd added the enhancement New feature or request label Oct 21, 2022
@davepar
Copy link
Contributor

davepar commented Jan 9, 2023

Related bug: supabase/cli#686

@soedirgo soedirgo changed the title Support custom data types Support composite types Jan 9, 2023
@github-actions
Copy link

🎉 This issue has been resolved in version 0.58.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants