drizzle-team / drizzle-team/drizzle-orm
[BUG]: column type `json` array is returning `unknown[]`
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### What version of `drizzle-orm` are you using?
0.33.0
### What version of `drizzle-kit` are you using?
0.24.0
### Describe the Bug
```JS
export const messages = pgTable('messages', {
id: uuid('id').defaultRandom().primaryKey(),
content: text('content'),
type: text('type', { enum: ['user', 'assistant', 'tool'] }),
dialogId: uuid('dialog_id').references(() => dialogs.id, { onDelete: 'cascade' }),
tool_calls: json('tool_calls').$type().array(),
tool_call_id: text('tool_call_id'),
});
```

### Expected behavior
The return type of column type `json` shouldn't be of type `unknown`
### Environment & setup
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.