UNPKG

@gabliam/web-core

Version:
9 lines (8 loc) 482 B
import { Container, Type, gabliamValue } from '@gabliam/core'; export type PipeFn = Pipe['transform']; export interface Pipe<T = any> { transform(value: T, type?: Type<any>): gabliamValue<any>; } export declare function isPipe(value: any): value is Pipe; export declare const createPipeResolver: (container: Container) => (pipe: any) => Pipe; export declare const extractPipes: (container: Container, controller: any, key: string, index: number, addGlobal?: boolean) => PipeFn;