Turborepo - no type safety when using drizzle in other modules
Hi all, I am setting up a monorepo with turborepo where I have an API under
apps/api
and a database module under packages/db
. I am losing type safety when importing the db
instance in another package. I export all of my tables and the drizzle instance like so below:
I am not sure if this is a problem with my tsconfig for both of these modules or how I am exporting packages.
I attached screenshots of what my IDE displays when I hover over users and what the returned value should be. Any help would be appreciated, thank you 🙏

1 Reply
so it was a tsconfig issue, if anyone stumbles across this in the future, this is the tsconfig I have setup