Skip to content

Column decorator requires input #149

@watzon

Description

@watzon

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions