@taiga-ui/kit
Version:
Taiga UI Angular main components kit
19 lines (18 loc) • 667 B
TypeScript
import { TuiDay, TuiDayRange } from '@taiga-ui/cdk';
import { TuiTextMaskPipeHandler } from '@taiga-ui/core';
import { WithDateMaskPipeConfig } from '@taiga-ui/kit/interfaces';
/**
* Normalizes date in formatted string
*
* Normalizes when:
*
* 1. It is a single date
* 2. It is a single date and a separator
* 3. It is two dates and a separator between them
*
* In **other** cases, the value does not change.
*
* @param config with min and max date
* @return mask pipe handler that handles `min` and `max`
*/
export declare function tuiCreateAutoCorrectedDateRangePipe(config: WithDateMaskPipeConfig<TuiDayRange | null, TuiDay>): TuiTextMaskPipeHandler;