Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
feat(decorator): Added type decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Feb 23, 2016
1 parent e344c41 commit 3e70062
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/decorator/type.js
@@ -0,0 +1,7 @@
import {OrmMetadata} from '../orm-metadata';

export function type(typeValue) {
return function(target, propertyName) {
OrmMetadata.forTarget(target.constructor).put('types', propertyName, typeValue);
};
}

0 comments on commit 3e70062

Please sign in to comment.