Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column decorator requires input #149

Open
watzon opened this issue Aug 14, 2021 · 0 comments
Open

Column decorator requires input #149

watzon opened this issue Aug 14, 2021 · 0 comments

Comments

@watzon
Copy link

watzon commented Aug 14, 2021

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant