UNPKG

@tsdi/pack

Version:

@tsdi/pack is simple build tasks, base on AOP, Ioc container, via @tsdi. dev build pack activities.

27 lines (25 loc) 814 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PathPipe = void 0; var tslib_1 = require("tslib"); var components_1 = require("@tsdi/components"); var ioc_1 = require("@tsdi/ioc"); var PathPipe = /** @class */ (function () { function PathPipe() { } PathPipe.prototype.transform = function (value, defaults) { if (ioc_1.isString(value)) { return value; } return value ? defaults : null; }; PathPipeAnn = function () { return { "name": "PathPipe", "params": { "transform": ["value", "defaults"] } }; }; PathPipe = tslib_1.__decorate([ components_1.Pipe('path') ], PathPipe); return PathPipe; }()); exports.PathPipe = PathPipe; //# sourceMappingURL=../sourcemaps/pipes/vailfypipes.js.map