@taiga-ui/core
Version: 
Core library for creating Angular components and applications using Taiga UI
14 lines (13 loc) • 748 B
TypeScript
import { InjectionToken, type Provider, type WritableSignal } from '@angular/core';
import { type TuiBooleanHandler, type TuiIdentityMatcher, type TuiStringHandler } from '@taiga-ui/cdk/types';
export interface TuiItemsHandlers<T> {
    readonly disabledItemHandler: WritableSignal<TuiBooleanHandler<T>>;
    readonly identityMatcher: WritableSignal<TuiIdentityMatcher<T>>;
    readonly stringify: WritableSignal<TuiStringHandler<T>>;
}
export declare const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown>;
/**
 * Default items handlers for components
 */
export declare const TUI_ITEMS_HANDLERS: InjectionToken<TuiItemsHandlers<unknown>>;
export declare function tuiItemsHandlersProvider<T>(options: Partial<TuiItemsHandlers<T>>): Provider;