@raralabs/react-patro
Version:
AD and BS Calendar functions as hooks and component
7 lines (6 loc) • 612 B
TypeScript
import { CalendarType, IDateObject } from "../types/main";
export declare const isMonthValid: (month: number | string, throwError?: boolean | undefined) => boolean;
export declare const isBsDateValid: (dateObj: IDateObject, throwError?: boolean | undefined) => boolean;
export declare const isAdDateValid: (dateObj: IDateObject, throwError?: boolean | undefined) => boolean;
export declare const isInValidRange: (dateObj: IDateObject, calendarType: CalendarType, throwError?: boolean) => boolean;
export declare function isDateValidWithFormat(input: string, format: string, throwError?: boolean): boolean;