typeorm icon indicating copy to clipboard operation
typeorm copied to clipboard

Column decorator requires input

Open watzon opened this issue 4 years ago • 0 comments

Issue type:

[ ] question [x] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ ] mssql [ ] mysql / mariadb [ ] oracle [ ] postgres [ ] cockroachdb [ ] sqlite [ ] sqljs [ ] react-native [ ] expo

TypeORM version:

[x] latest [ ] @next [ ] 0.x.x (or put your version here)

Deno version:

1.12.1

Steps to reproduce or a small repository showing the problem:

Create a model. The Column decorator must have at least one argument, forcing you to do Column({}) if you don't have any options to specify. Not the end of the world, but also an easy fix with one more overload or changing:

export function Column(options: ColumnOptions): Function;

to

export function Column(options?: ColumnOptions): Function;

watzon avatar Aug 14 '21 18:08 watzon