ParserError "Unexpected input: .sum()" when using aggregate functions with TypeScript #523
Open
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
When I use aggregate functions, the inferred TypeScript data type will always depict an error, requiring me to use casts to
any
.To Reproduce
The inferred type for
data
seen in my VS Code is:ParserError<"Unexpected input: .sum(),\n ...other_things(id, name, color)\n ">[] | null
Inference works fine when not using aggregate functions.
Re-generating TS types via
supabase gen types typescript
does not fix the issue.Expected behavior
Types should be inferred correctly without an error.
System information
The text was updated successfully, but these errors were encountered: