UNPKG

bia-framework

Version:

Bia Framework to work with angular 2

45 lines (44 loc) 1.38 kB
// /** // * Created by jd on 12/04/2016. // */ // /// <reference path="../../node_modules/reflect-metadata/reflect-metadata.d.ts" /> // export interface OdisseiaDataBaseTable // { // tableName:string; // columnNames:string[]; // } // // export interface OdisseiaDataBaseColumn // { // // columnType:string; // required?:boolean; // isPrimary?:boolean; // // } // // // export function odisseiaTable(obj:OdisseiaDataBaseTable) // { // return (target:Object) => // { // // Reflect.defineMetadata(target, "design:paramtypes", obj); // Reflect.defineMetadata("odisseiaTable", obj, target); // // implement class decorator here, the class decorator // // will have access to the decorator arguments (filter) // // because they are stored in a closure // } // } // // // export function odisseiaColunmDefinition(obj:OdisseiaDataBaseColumn) // { // return (target:Object, targetKey:string) => // { // // Reflect.defineMetadata(target, "design:paramtypes", obj); // Reflect.defineMetadata("odisseiaColunmDefinition", obj, target, targetKey); // // implement class decorator here, the class decorator // // will have access to the decorator arguments (filter) // // because they are stored in a closure // } // }