UNPKG

@tsed/common

Version:
22 lines 527 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UsePipe = void 0; const paramFn_1 = require("./paramFn"); /** * Register a Pipe to be used with the current decorated param. * * @param token * @param options * @decorator * @operation * @input * @pipe */ function UsePipe(token, options = {}) { return paramFn_1.ParamFn((param) => { param.store.set(token, options); param.pipes.push(token); }); } exports.UsePipe = UsePipe; //# sourceMappingURL=usePipe.js.map