@@ -20,67 +20,67 @@ import { GeneratedMetadataArgs } from "../../metadata-args/GeneratedMetadataArgs
2020 * Column decorator is used to mark a specific class property as a table column. Only properties decorated with this
2121 * decorator will be persisted to the database when entity be saved.
2222 */
23- export function Column ( ) : Function ;
23+ export function Column ( ) : PropertyDecorator ;
2424
2525/**
2626 * Column decorator is used to mark a specific class property as a table column.
2727 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
2828 */
29- export function Column ( options : ColumnOptions ) : Function ;
29+ export function Column ( options : ColumnOptions ) : PropertyDecorator ;
3030
3131/**
3232 * Column decorator is used to mark a specific class property as a table column.
3333 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
3434 */
35- export function Column ( type : SimpleColumnType , options ?: ColumnCommonOptions ) : Function ;
35+ export function Column ( type : SimpleColumnType , options ?: ColumnCommonOptions ) : PropertyDecorator ;
3636
3737/**
3838 * Column decorator is used to mark a specific class property as a table column.
3939 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
4040 */
41- export function Column ( type : SpatialColumnType , options ?: ColumnCommonOptions & SpatialColumnOptions ) : Function ;
41+ export function Column ( type : SpatialColumnType , options ?: ColumnCommonOptions & SpatialColumnOptions ) : PropertyDecorator ;
4242
4343/**
4444 * Column decorator is used to mark a specific class property as a table column.
4545 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
4646 */
47- export function Column ( type : WithLengthColumnType , options ?: ColumnCommonOptions & ColumnWithLengthOptions ) : Function ;
47+ export function Column ( type : WithLengthColumnType , options ?: ColumnCommonOptions & ColumnWithLengthOptions ) : PropertyDecorator ;
4848
4949/**
5050 * Column decorator is used to mark a specific class property as a table column.
5151 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
5252 */
53- export function Column ( type : WithWidthColumnType , options ?: ColumnCommonOptions & ColumnWithWidthOptions ) : Function ;
53+ export function Column ( type : WithWidthColumnType , options ?: ColumnCommonOptions & ColumnWithWidthOptions ) : PropertyDecorator ;
5454
5555/**
5656 * Column decorator is used to mark a specific class property as a table column.
5757 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
5858 */
59- export function Column ( type : WithPrecisionColumnType , options ?: ColumnCommonOptions & ColumnNumericOptions ) : Function ;
59+ export function Column ( type : WithPrecisionColumnType , options ?: ColumnCommonOptions & ColumnNumericOptions ) : PropertyDecorator ;
6060
6161/**
6262 * Column decorator is used to mark a specific class property as a table column.
6363 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
6464 */
65- export function Column ( type : "enum" , options ?: ColumnCommonOptions & ColumnEnumOptions ) : Function ;
65+ export function Column ( type : "enum" , options ?: ColumnCommonOptions & ColumnEnumOptions ) : PropertyDecorator ;
6666
6767/**
6868 * Column decorator is used to mark a specific class property as a table column.
6969 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
7070 */
71- export function Column ( type : "simple-enum" , options ?: ColumnCommonOptions & ColumnEnumOptions ) : Function ;
71+ export function Column ( type : "simple-enum" , options ?: ColumnCommonOptions & ColumnEnumOptions ) : PropertyDecorator ;
7272
7373/**
7474 * Column decorator is used to mark a specific class property as a table column.
7575 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
7676 */
77- export function Column ( type : "set" , options ?: ColumnCommonOptions & ColumnEnumOptions ) : Function ;
77+ export function Column ( type : "set" , options ?: ColumnCommonOptions & ColumnEnumOptions ) : PropertyDecorator ;
7878
7979/**
8080 * Column decorator is used to mark a specific class property as a table column.
8181 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
8282 */
83- export function Column ( type : "hstore" , options ?: ColumnCommonOptions & ColumnHstoreOptions ) : Function ;
83+ export function Column ( type : "hstore" , options ?: ColumnCommonOptions & ColumnHstoreOptions ) : PropertyDecorator ;
8484
8585/**
8686 * Column decorator is used to mark a specific class property as a table column.
@@ -90,13 +90,13 @@ export function Column(type: "hstore", options?: ColumnCommonOptions & ColumnHst
9090 * single table of the entity where Embedded is used. And on hydration all columns which supposed to be in the
9191 * embedded will be mapped to it from the single table.
9292 */
93- export function Column ( type : ( type ?: any ) => Function , options ?: ColumnEmbeddedOptions ) : Function ;
93+ export function Column ( type : ( type ?: any ) => Function , options ?: ColumnEmbeddedOptions ) : PropertyDecorator ;
9494
9595/**
9696 * Column decorator is used to mark a specific class property as a table column.
9797 * Only properties decorated with this decorator will be persisted to the database when entity be saved.
9898 */
99- export function Column ( typeOrOptions ?: ( ( type ?: any ) => Function ) | ColumnType | ( ColumnOptions & ColumnEmbeddedOptions ) , options ?: ( ColumnOptions & ColumnEmbeddedOptions ) ) : Function {
99+ export function Column ( typeOrOptions ?: ( ( type ?: any ) => Function ) | ColumnType | ( ColumnOptions & ColumnEmbeddedOptions ) , options ?: ( ColumnOptions & ColumnEmbeddedOptions ) ) : PropertyDecorator {
100100 return function ( object : Object , propertyName : string ) {
101101
102102 // normalize parameters
0 commit comments