drizzle-team / drizzle-team/drizzle-orm

[BUG]: Property decimal does not exist on type, when using pgTable in drizzle orm

Open
#3,059 2 comments 0 reactions 1 assignee Claimed by @L-Mario564 View on GitHub
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.34.0

### What version of `drizzle-kit` are you using?

0.25.0

### Describe the Bug

I got: TS2339: Property decimal does not exist on type when writing this code

```
import {pgTable} from "drizzle-orm/pg-core";

export const table = pgTable(
"table",
(t) => ({
column: t.decimal(),
}),
);
```

Is this on purpose and should be replaced by numeric? Thank's.

### Expected behavior

_No response_

### Environment & setup

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.