UNPKG

react-nepalipatro

Version:

A reusable Nepali (Bikram Sambat) calendar React component.

18 lines (17 loc) 517 B
type BsMonthData = { days: number; startAd: string; }; type BsYearData = Record<string, BsMonthData>; type BsDates = Record<string, BsYearData>; export declare function adToBs(adDateStr: string, bsData: BsDates): { bsYear: number; bsMonth: number; bsDay: number; } | null; export declare function bsToAd(bsYear: number, bsMonth: number, bsDay: number, bsData: BsDates): string | null; export declare const NepaliDateConverter: { adToBs: typeof adToBs; bsToAd: typeof bsToAd; }; export {};