drizzle-team / drizzle-team/drizzle-orm
[BUG]: `enumValues` are `undefined` when picked via table
Open
bug
db/postgres
priority
- 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.29.3
### What version of `drizzle-kit` are you using?
0.20.14
### Describe the Bug
This happens with `pgEnum`.
If you have a table (`foo`), that has a enum field (`bar`), `foo.bar.enumValues` will always be `undefined`, although the derived type states that it cannot be undefined.
Yet `bar.enumValues` will be defined.
### Expected behavior
`foo.bar.enumValues` to be defined.
### Environment & setup
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.