import "reflect-metadata";
const tableColumn = Symbol("TableColumn");
export default (props) => {
    return Reflect.metadata(tableColumn, props);
};
export const getTableColumn = (target, propertyKey) => {
    return Reflect.getMetadata(tableColumn, target, propertyKey);
};
export const getTableColumns = (target) => {
    const dictonary = {};
    const keys = Object.keys(target);
    for (const key of keys) {
        if (Reflect.getMetadata(tableColumn, target, key)) {
            dictonary[key] = Reflect.getMetadata(tableColumn, target, key);
        }
    }
    return dictonary;
};
//# sourceMappingURL=TableColumn.js.map