mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixes #654
This commit is contained in:
parent
71935d7088
commit
bb6cccb25c
@ -28,6 +28,8 @@ const class_transformer_1 = require("class-transformer"); // import {Type} from
|
||||
/* export */
|
||||
function Column(typeOrOptions, options) {
|
||||
return function (object, propertyName) {
|
||||
if (typeOrOptions instanceof Function)
|
||||
class_transformer_1.Type(typeOrOptions)(object, propertyName);
|
||||
};
|
||||
}
|
||||
exports.Column = Column;
|
||||
@ -44,6 +46,15 @@ exports.CreateDateColumn = CreateDateColumn;
|
||||
}
|
||||
exports.DiscriminatorColumn = DiscriminatorColumn;
|
||||
|
||||
/* export */
|
||||
function ObjectIdColumn(typeOrOptions, options) {
|
||||
return function (object, propertyName) {
|
||||
if (typeOrOptions instanceof Function)
|
||||
class_transformer_1.Type(typeOrOptions)(object, propertyName);
|
||||
};
|
||||
}
|
||||
exports.ObjectIdColumn = ObjectIdColumn;
|
||||
|
||||
/* export */ function PrimaryColumn(typeOrOptions, options) {
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
@ -269,9 +280,33 @@ exports.TreeChildren = TreeChildren;
|
||||
}
|
||||
exports.TreeLevelColumn = TreeLevelColumn;
|
||||
|
||||
/* export */ function TreeParent(options) {
|
||||
/* export */ function TreeParent(typeFunction) {
|
||||
return function (object, propertyName) {
|
||||
class_transformer_1.Type(typeFunction)(object, propertyName);
|
||||
};
|
||||
}
|
||||
exports.TreeParent = TreeParent;
|
||||
|
||||
// other
|
||||
|
||||
/* export */ function DiscriminatorValue(options) {
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
}
|
||||
exports.DiscriminatorValue = DiscriminatorValue;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
/* export */ function Embedded(typeFunction) {
|
||||
return function (object, propertyName) {
|
||||
class_transformer_1.Type(typeFunction)(object, propertyName);
|
||||
};
|
||||
}
|
||||
exports.Embedded = Embedded;
|
||||
|
||||
/* export */ function Index() {
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
}
|
||||
exports.Index = Index;
|
||||
@ -41,6 +41,12 @@ exports.CreateDateColumn = CreateDateColumn;
|
||||
}
|
||||
exports.DiscriminatorColumn = DiscriminatorColumn;
|
||||
|
||||
/* export */ function ObjectIdColumn(columnOptions) {
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
}
|
||||
exports.ObjectIdColumn = ObjectIdColumn;
|
||||
|
||||
/* export */ function PrimaryColumn(typeOrOptions, options) {
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
@ -65,6 +71,50 @@ exports.UpdateDateColumn = UpdateDateColumn;
|
||||
}
|
||||
exports.VersionColumn = VersionColumn;
|
||||
|
||||
// entities
|
||||
|
||||
/* export */ function AbstractEntity() {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.AbstractEntity = AbstractEntity;
|
||||
|
||||
/* export */ function ClassEntityChild(tableName, options) {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.ClassEntityChild = ClassEntityChild;
|
||||
|
||||
/* export */ function ClosureEntity(name, options) {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.ClosureEntity = ClosureEntity;
|
||||
|
||||
/* export */ function EmbeddableEntity() {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.EmbeddableEntity = EmbeddableEntity;
|
||||
|
||||
/* export */ function SingleEntityChild() {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.SingleEntityChild = SingleEntityChild;
|
||||
|
||||
/* export */ function Entity(name, options) {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.Entity = Entity;
|
||||
|
||||
/* export */ function TableInheritance(type) {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.TableInheritance = TableInheritance;
|
||||
|
||||
// listeners
|
||||
|
||||
/* export */ function AfterInsert() {
|
||||
@ -165,50 +215,6 @@ exports.RelationCount = RelationCount;
|
||||
}
|
||||
exports.RelationId = RelationId;
|
||||
|
||||
// entities
|
||||
|
||||
/* export */ function AbstractEntity() {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.AbstractEntity = AbstractEntity;
|
||||
|
||||
/* export */ function ClassEntityChild(tableName, options) {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.ClassEntityChild = ClassEntityChild;
|
||||
|
||||
/* export */ function ClosureEntity(name, options) {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.ClosureEntity = ClosureEntity;
|
||||
|
||||
/* export */ function EmbeddableEntity() {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.EmbeddableEntity = EmbeddableEntity;
|
||||
|
||||
/* export */ function SingleEntityChild() {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.SingleEntityChild = SingleEntityChild;
|
||||
|
||||
/* export */ function Entity(name, options) {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.Entity = Entity;
|
||||
|
||||
/* export */ function TableInheritance(type) {
|
||||
return function (object) {
|
||||
};
|
||||
}
|
||||
exports.TableInheritance = TableInheritance;
|
||||
|
||||
// tables (deprecated)
|
||||
|
||||
/* export */ function AbstractTable() {
|
||||
@ -265,4 +271,30 @@ exports.TreeLevelColumn = TreeLevelColumn;
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
}
|
||||
exports.TreeParent = TreeParent;
|
||||
exports.TreeParent = TreeParent;
|
||||
|
||||
// other
|
||||
|
||||
/* export */ function DiscriminatorValue(options) {
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
}
|
||||
exports.DiscriminatorValue = DiscriminatorValue;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
/* export */ function Embedded(options) {
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
}
|
||||
exports.Embedded = Embedded;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
/* export */ function Index(options) {
|
||||
return function (object, propertyName) {
|
||||
};
|
||||
}
|
||||
exports.Index = Index;
|
||||
Loading…
x
Reference in New Issue
Block a user