UNPKG

@tsdi/pack

Version:

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

21 lines (19 loc) 549 B
import { __decorate } from "tslib"; import { Pipe } from '@tsdi/components'; import { isString } from '@tsdi/ioc'; let PathPipe = class PathPipe { transform(value, defaults) { if (isString(value)) { return value; } return value ? defaults : null; } static ρAnn() { return { "name": "PathPipe", "params": { "transform": ["value", "defaults"] } }; } }; PathPipe = __decorate([ Pipe('path') ], PathPipe); export { PathPipe }; //# sourceMappingURL=../sourcemaps/pipes/vailfypipes.js.map