UNPKG

hamro-nepali-patro

Version:

A modern React component library for Nepali (Bikram Sambat, BS) and Gregorian (AD) calendar date picking, conversion, and utilities. Includes a customizable datepicker, BS/AD conversion, and Nepali date functions.

7 lines (6 loc) 584 B
import { CalendarType, IDateObject } from "../types/main"; export declare const isMonthValid: (month: number | string, throwError?: boolean) => boolean; export declare const isBsDateValid: ({ year, month, date }: IDateObject, throwError?: boolean) => boolean; export declare const isAdDateValid: (dateObj: IDateObject, throwError?: boolean) => boolean; export declare const isInValidRange: (dateObj: IDateObject, calendarType: CalendarType, throwError?: boolean) => boolean; export declare function isDateValidWithFormat(input: string, format: string, throwError?: boolean): boolean;