import { DecoratorConfig } from "../interface/decorator-config" ; export const localizationContainer = new ( class { modelDecorators : Array < DecoratorConfig > = new Array < DecoratorConfig > ( ) ; addModelDecorator ( target , data , name ) { this . modelDecorators . push ( { target : target , config : data , name : name } ) ; } getModelDecorator ( target , name ) { return this . modelDecorators . filter ( t => t . target == target && t . name == name ) [ 0 ] ; } } ) ( ) ;