import { defaultContainer } from '../../core/defaultContainer' ; import { ErrorConfig } from "../../models/config/error-config" ; import { DECORATORS } from "../../const/decorators.const" ; export function error ( config ? ) { return function ( target , propertyKey , parameterIndex ? ) { defaultContainer . addDecoratorConfig ( target , parameterIndex , propertyKey , config , DECORATORS . error ) ; } ; }