// import 'reflect-metadata'; import { PropertyConfig } from '../../PropertyConfig'; import { actionConfigStore } from '../action/store'; export function property(config: Partial = {}) { return (target: any, key: string) => { const cfg = new PropertyConfig(); Object.assign(cfg, config); if (target.name) { throw Error('Static fields are not supported.'); } const ac = actionConfigStore.get(target.constructor); ac.properties.set(key, cfg); }; }