Skip to content

Commit

Permalink
fix(cdk): tuiMapper should be stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Aug 22, 2024
1 parent 22bb699 commit a59c643
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions projects/cdk/pipes/mapper/mapper.pipe.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -10,7 +10,6 @@ export class TuiMapperPipe implements PipeTransform {
* @param mapper a mapping function
* @param args arbitrary number of additional arguments
*/
transform<T, G>(value: T, mapper: TuiMapper<T, G>, ...args: any[]): G;
transform<T extends unknown[], U, G>(
value: U,
mapper: TuiTypedMapper<[U, ...T], G>,
Expand Down

0 comments on commit a59c643

Please sign in to comment.