From a59c64328510bf301d14bc77388f67ce6f6dacf6 Mon Sep 17 00:00:00 2001 From: splincode Date: Thu, 22 Aug 2024 14:19:18 +0300 Subject: [PATCH] fix(cdk): `tuiMapper` should be stricter --- projects/cdk/pipes/mapper/mapper.pipe.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/cdk/pipes/mapper/mapper.pipe.ts b/projects/cdk/pipes/mapper/mapper.pipe.ts index bb1200ea7c31..3aa1ce8521ca 100644 --- a/projects/cdk/pipes/mapper/mapper.pipe.ts +++ b/projects/cdk/pipes/mapper/mapper.pipe.ts @@ -1,5 +1,5 @@ import {Pipe, PipeTransform} from '@angular/core'; -import {TuiMapper, TuiTypedMapper} from '@taiga-ui/cdk/types'; +import {TuiTypedMapper} from '@taiga-ui/cdk/types'; @Pipe({name: 'tuiMapper'}) export class TuiMapperPipe implements PipeTransform { @@ -10,7 +10,6 @@ export class TuiMapperPipe implements PipeTransform { * @param mapper a mapping function * @param args arbitrary number of additional arguments */ - transform(value: T, mapper: TuiMapper, ...args: any[]): G; transform( value: U, mapper: TuiTypedMapper<[U, ...T], G>,