DT
Drizzle Team•5mo ago
Baterka

Getting TypeScript warnings where they should not be

I started using Drizzle today and I realized that TypeScript checking in IntelliJ IDEA is showing warnings where it should be ok... It is giving me proper options and also shows an error if the type is wrong, but I cannot get rid of the warnings for some reason. Examples:
No description
7 Replies
Angelelz
Angelelz•5mo ago
Are you importing the eq() function from "drizzle-orm"?
Baterka
Baterka•5mo ago
yes
Angelelz
Angelelz•5mo ago
Well, it says {where: any} That shouldn't be any
Baterka
Baterka•5mo ago
yeah... I think that I found the issue... IntelliJ IDEA has a weird inspection check that is triggering this weird warning even the type is definitelly not any
Baterka
Baterka•5mo ago
No description
Baterka
Baterka•5mo ago
I just turned it off... I am still getting proper type checks even I disabled it so... 😄 I dont even understand what exactly is this inspection checking tbh 😄
Angelelz
Angelelz•5mo ago
I know IntelliJ has a custom typescript LSP that sometimes cause problems