Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Typescript type for interval is generated as unknown #843

Open
ankushg opened this issue Dec 28, 2022 · 1 comment
Open

Typescript type for interval is generated as unknown #843

ankushg opened this issue Dec 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ankushg
Copy link

ankushg commented Dec 28, 2022

I've got an INTERVAL column in my database, but the TS type is being generated as unknown.

Is there a TS type that can accurately represent this?

@ankushg ankushg added the enhancement New feature or request label Dec 28, 2022
@iamchubko
Copy link

Running into the same issue

That's what returned from db

sql value -> json value
0 years 0 mons 30 days 0 hours 0 mins 0.0 secs -> "30 days"
0 years 0 mons 0 days 0 hours 0 mins 0.0 secs -> "00:00:00"

At least INTERVAL values might be of type string

@sweatybridge sweatybridge transferred this issue from supabase/cli Nov 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants