Skip to content

Commit

Permalink
fix: resolve missing decorators on shim (#6354)
Browse files Browse the repository at this point in the history
Closes: #6093
  • Loading branch information
Silventino committed Jul 6, 2020
1 parent 1bc5658 commit 8e2d97d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
18 changes: 16 additions & 2 deletions extra/typeorm-class-transformer-shim.js
Expand Up @@ -59,12 +59,21 @@ function makePropertyDecorator(typeFunction) {

// columns

/* export */
function Column(typeOrOptions, options) {
/* export */ function Column(typeOrOptions, options) {
return makePropertyDecorator(typeOrOptions);
}
exports.Column = Column;

/* export */ function ViewColumn(typeOrOptions, options) {
return makePropertyDecorator(typeOrOptions);
}
exports.ViewColumn = ViewColumn;

/* export */ function DeleteDateColumn(options) {
return function(object, propertyName) {};
}
exports.DeleteDateColumn = DeleteDateColumn;

/* export */ function CreateDateColumn(options) {
return function(object, propertyName) {};
}
Expand Down Expand Up @@ -192,6 +201,11 @@ exports.ChildEntity = ChildEntity;
}
exports.Entity = Entity;

/* export */ function ViewEntity(options) {
return function(object) {};
}
exports.ViewEntity = ViewEntity;

/* export */ function TableInheritance(type) {
return function(object) {};
}
Expand Down
18 changes: 18 additions & 0 deletions extra/typeorm-model-shim.js
Expand Up @@ -29,6 +29,18 @@
}
exports.Column = Column;

/* export */ function ViewColumn(typeOrOptions, options) {
return function (object, propertyName) {
};
}
exports.ViewColumn = ViewColumn;

/* export */ function DeleteDateColumn(options) {
return function (object, propertyName) {
};
}
exports.DeleteDateColumn = DeleteDateColumn;

/* export */ function CreateDateColumn(options) {
return function (object, propertyName) {
};
Expand Down Expand Up @@ -79,6 +91,12 @@ exports.ChildEntity = ChildEntity;
}
exports.Entity = Entity;

/* export */ function ViewEntity(name, options) {
return function (object) {
};
}
exports.ViewEntity = ViewEntity;

/* export */ function TableInheritance(type) {
return function (object) {
};
Expand Down

0 comments on commit 8e2d97d

Please sign in to comment.