-
-
Notifications
You must be signed in to change notification settings - Fork 158
[supabase-js] Parser error for using aggregate and spread #524
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
Comments
@encima Would you know if there is a workaround? Right now, I'm casting all outputs to |
@stefan-girlich are you using the latest version of supabase-js? |
Thanks for the hint. I upgraded supabase-js, but I'm now seeing a new error. I added an updated in my original bug report. |
Hey everyone ! We've reworked the result inference in To test it out, update your npm install [email protected] Please let us know if you encounter any issues, especially with retro-compatibility, so we can finalize it for the next release. |
The fix has been released in |
Bug report
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
npx supabase gen types typescript --local
2a. Using spread in
select
.select('...users (first_name, last_name)')
2b. Using newly introduced aggregate functions
.select('from:from_time.min(), till:till_time.max()')
2a will type fail with
PostgrestSingleResponse<ParserError<"Expected identifier at '...users (first_name, last_name'">>
2b will type fail with
PostgrestSingleResponse<ParserError<"Unexpected input: .min(), till:till_time.max()">>
Expected behavior
No TypeScript errors
System information
^2.39.7
19.4.0
The text was updated successfully, but these errors were encountered: