X
Xata•15mo ago
Eusebio Trigo

Question about types in the Typescript client

Hi Team! Since one of the latests versions I got in Intellij the following warning: "Argument type {total_orders: {uniqueCount: {column: "order"}}} is not assignable to parameter type Dictionary<AggregationExpression<XataRecord>> | undefined " And also: "Argument type string[] is not assignable to parameter type SelectableColumnWithObjectNotation<XataRecord>[] " on a .select Or "Argument type "email" is not assignable to parameter type FilterColumns<XataRecord> | JSONFilterColumns<XataRecord>" on a .filter It is not breaking the build of our code, but it is displaying the warning (and as I have an OCD with the IDE warnings, just wanted to ask about it).
No description
5 Replies
Dave Snider
Dave Snider•15mo ago
I've alerted our engineering team. They're going to check this out.
Eusebio Trigo
Eusebio TrigoOP•15mo ago
Thank you!!
emily
emily•15mo ago
Hey there 🙂 Do you mind reaching out via https://support.xata.io/hc/en-us/requests/new? It's fine to just copy paste your post into the form. If you could also include the shape of your schema that would be awesome. Thanks! Emily
Eusebio Trigo
Eusebio TrigoOP•15mo ago
Sent! Thanks team!
kostas
kostas•15mo ago
For continuity in case more users read this, parameter type warnings surface starting IntelliJ 2023.3 and do not seem to happen up until 2023.2/latest patch. We'll be following up in this issue: https://github.com/xataio/client-ts/issues/1279

Did you find this page helpful?