Typescript doesnt autocomplete columns on table
I have a monorepo with a db package, structure is as follows:
.
├── drizzle.config.ts
├── migrations
├── package.json
├── src
│ ├── index.ts
│ ├── schema
│ │ ├── account.ts
│ │ ├── chunk.ts
│ │ ├── entity.ts
│ │ ├── graph.ts
│ │ ├── index.ts
│ │ ├── relation.ts
│ │ ├── session.ts
│ │ ├── source-document-to-entity.ts
│ │ ├── source-document-to-relation.ts
│ │ ├── source-document.ts
│ │ ├── topic.ts
│ │ ├── user.ts
│ │ └── verification.ts
│ └── utils
│ └── base-columns.ts
└── tsconfig.json
In schema/index.ts I re export all my tables
export * from './source-document'; and so on
source-document.ts
Now when I import a table back into another package in my monorepo the columns don't show up, see the image.
What am I doing wrong here?
0 Replies