UNPKG

react-nepalipatro

Version:

A reusable Nepali (Bikram Sambat) calendar React component.

20 lines (19 loc) 603 B
export declare const bsMonths: string[]; export declare const bsDays: string[]; 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 adYearMonthToBsYearMonth(adYear: number, adMonth: number, bsData: any): { bsYear: number; bsMonth: number; } | null; export declare function toNepaliNumber(num: number | string): string; export {};