Ignorable TypeScript error when using RawBuilder inside jsonAgg's orderBy #1300
Labels
api
Related to library's API
enhancement
New feature or request
good first issue
Good for newcomers
greenlit
Ready for implementation
typescript
Related to Typescript
Assume I have a
pet
table which contains entries like:123
{ "breakfast": 8, "walk": 15, "dinner": 18, ...}
I'm able to use the RawBuilder when ordering at a query level, and TypeScript has no issue with this:
https://kyse.link/4SqYL
However if I do the same when calling
fn.jsonAgg
, TypeScript errors:https://kyse.link/61vQv
Fortunately this can be ignored by sticking a
// @ts-ignore
comment above the erroring line - the query executes as expected - but this shouldn't be necessary.The text was updated successfully, but these errors were encountered: