@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
9 lines (8 loc) • 414 B
TypeScript
import type { TuiStringHandler } from './handler';
import type { TuiMapper } from './mapper';
/**
* A matcher function to test items against with extra arguments.
*/
export type TuiMatcher<I extends unknown[]> = TuiMapper<I, boolean>;
export type TuiStringMatcher<I> = (item: I, matchValue: string, stringify: TuiStringHandler<I>) => boolean;
export type TuiIdentityMatcher<I> = (item1: I, item2: I) => boolean;