You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explain what kind of behaviour you are getting and how you think it should do
Incorrect TypeScript type when using .count('*'). It currently shows that result is a string, but in reality it's an object { count: string }. .count(validFieldName) and .count() resolve to Dict
Environment
Knex version: 3.1.0
Database + version: PostgreSQL 14
OS: Linux pop-os 6.8.0
Select applicable template from below.
@lorefnon
Bug
Incorrect TypeScript type when using .count('*'). It currently shows that result is a string, but in reality it's an object { count: string }. .count(validFieldName) and .count() resolve to Dict
Error message
Reduced test code
https://github.com/KristjanTammekivi/knex-bug-report
The text was updated successfully, but these errors were encountered: