UNPKG

@taiga-ui/cdk

Version:

Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance

16 lines (15 loc) 683 B
import { type PipeTransform } from '@angular/core'; import { type TuiMapper } from '@taiga-ui/cdk/types'; import * as i0 from "@angular/core"; export declare class TuiMapperPipe implements PipeTransform { /** * Maps object to an arbitrary result through a mapper function * * @param value an item to transform * @param mapper a mapping function * @param args arbitrary number of additional arguments */ transform<T extends unknown[], U, G>(value: U, mapper: TuiMapper<[U, ...T], G>, ...args: T): G; static ɵfac: i0.ɵɵFactoryDeclaration<TuiMapperPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<TuiMapperPipe, "tuiMapper", true>; }