import { injected } from "@indiv/di" ; export interface export interface PipeTransform { transform ( value , ... args ) : any ; } export type TPipeOptions = { name : string ; pure ? : boolean ; } ; export function Pipe ( options ) { return function ( _constructor ) : void { injected ( _constructor ) ; ( _constructor as any ) . isSingletonMode = false ; ( _constructor as any ) . nvType = 'nvPipe' ; ( _constructor as any ) . selector = options . name ; ( _constructor as any ) . pure = options . pure ; const vm = _constructor . prototype ; vm . $declarationMap = new Map ( ) ; } ; }