UNPKG

tsioc

Version:

tsioc is AOP, Ioc container, via typescript decorator

23 lines (21 loc) 960 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var DecoratorFactory_1 = require("./DecoratorFactory"); var DecoratorType_1 = require("./DecoratorType"); /** * create method or property decorator * * @export * @template T * @param {string} name * @param {MetadataAdapter} [adapter] metadata adapter * @param {MetadataExtends<T>} [metadataExtends] add extents for metadata. * @returns {IMethodPropParamDecorator<T>} */ function createMethodPropParamDecorator(name, adapter, metadataExtends) { var decorator = DecoratorFactory_1.createDecorator(name, adapter, metadataExtends); decorator.decoratorType = DecoratorType_1.DecoratorType.Method | DecoratorType_1.DecoratorType.Property | DecoratorType_1.DecoratorType.Parameter; return decorator; } exports.createMethodPropParamDecorator = createMethodPropParamDecorator; //# sourceMappingURL=../../sourcemaps/core/factories/MethodPropParamDecoratorFactory.js.map