Skip to content

Generated types incorrectly mark interval type as unknown #921

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

Open
2 tasks done
icopp opened this issue Apr 2, 2025 · 0 comments
Open
2 tasks done

Generated types incorrectly mark interval type as unknown #921

icopp opened this issue Apr 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@icopp
Copy link

icopp commented Apr 2, 2025

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Interval columns aren't correctly inferred as strings.

To Reproduce

  • Create a table with an interval column
  • Run supabase gen types --lang=typescript --local
  • See that the interval column is generated as unknown

Expected behavior

The interval column should be generated as string.

Screenshots

n/a

System information

  • Version of supabase (not supabase-js): 2.20.5
  • Version of Node.js: 22.12.0

Additional context

The format of the string depends on SET intervalstyle, but it's always a string.

@icopp icopp added the bug Something isn't working label Apr 2, 2025
@charislam charislam transferred this issue from supabase/supabase Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant