Help with helper utils

@Raphaël M (@rphlmr) ⚡ I wanted to use use snippets for jsonAggBuildObject but unfortunately I am getting some ts error. https://gist.github.com/rphlmr/0d1722a794ed5a16da0fdf6652902b15?permalink_comment_id=5009839#file-clear-db-ts
Gist
Drizzle snippets
Drizzle snippets. GitHub Gist: instantly share code, notes, and snippets.
No description
8 Replies
rphlmr ⚡
rphlmr ⚡4w ago
Is it the latest Drizzle ? You can remove the generics (for previous versions)
SelectFields
SelectFields
maverickdoge
maverickdogeOP4w ago
I am using 0.32, its almost the latest. But is that okay?`
maverickdoge
maverickdogeOP4w ago
No description
No description
maverickdoge
maverickdogeOP4w ago
@Raphaël M (@rphlmr) ⚡
rphlmr ⚡
rphlmr ⚡4w ago
Latest is 0.35. In your screenshot you should extend like in the gist to keep inference
maverickdoge
maverickdogeOP4w ago
@Raphaël M (@rphlmr) ⚡Now I am on the latest version. I tried that but for some reason I am getting Type 'SelectedFields' is not generic. error. Could u maybe provide assistance here to solve the type problem
No description
rphlmr ⚡
rphlmr ⚡4w ago
https://drizzle.run/se2noay5mhdu24va3xhv0lqo look at utils tab. I published it few days ago. (I am not at home right now :/)
rphlmr ⚡
rphlmr ⚡4w ago
If you are on vscode try to restart it. Mine is totally broken when I update packages. I always have to restart the typescript server 🤦‍♂️
Want results from more Discord servers?
Add your server