Permalink
Browse files

feat(decorator): Added type decorator

  • Loading branch information...
RWOverdijk committed Feb 23, 2016
1 parent e344c41 commit 3e70062e0f11d82bdadc80985a1eba625a152182
Showing with 7 additions and 0 deletions.
  1. +7 −0 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.