Nuxt3 type error
Hello, is there somebody who used Drizzle in Nuxt3 project?
I have problem with inheriting types from api, but only when I select specific columns from db. Server-side code shows correct types. Problem is on client-side, like you can see on photo. It gives mi correct type OR default type...
Server-side
Client-side
1 Reply
FIXED
Its bug in Nuxt3. It inherited types from GET and POST endpoints. I needed to change uppercase GET to lowercase in client-side code, and it fixes itself.