UNPKG

@e-group/material-lab

Version:

EGroup Team Lab - Incubator for EGroup Team experimental React components.

12 lines (11 loc) 1.06 kB
import { Falsy } from './types'; export declare const identity: <T>(x: T) => T; export declare const chunks: <T>(array: readonly T[], size: number) => T[][]; export declare const getDaysInMonth: (date: Date) => Date[]; export declare const getValidDate: (date: Date | string | Falsy, defaultValue: Date) => Date; export declare const getValidatedMonths: (minDate: Date, maxDate: Date, startDate: Date | Falsy, endDate: Date | Falsy) => (false | "" | 0 | Date | null | undefined)[]; export declare const isWithinIntervalValid: (date: number | Date, startDate: Date | Falsy, endDate: Date | Falsy) => boolean; export declare const isSameDayValid: (dateLeft: number | Date | Falsy, dateRight: number | Date | Falsy) => boolean; export declare const isBeforeValid: (date: number | Date | Falsy, dateToCompare: number | Date | Falsy) => boolean; export declare const isAfterValid: (date: number | Date | Falsy, dateToCompare: number | Date | Falsy) => boolean; export declare const inDateRange: (day: Date, startDate: Date | Falsy, endDate: Date | Falsy) => boolean;