react-nepali-datepicker-bs
Version:
Nepali Datepicker (Bikram Sambat) as a ReactJS component
17 lines (16 loc) • 1.3 kB
TypeScript
import { ParsedDate, SplittedDate, TDateFormatOptions, TDateSeparator, voidFunction } from "../Types";
export declare const defaultFormatOptions: TDateFormatOptions<TDateSeparator>;
export declare const range: (start: number, end: number, step?: number) => number[];
export declare const zeroPad: (num: number) => string;
export declare const executionDelegation: (execution: voidFunction, delegatedExecution: voidFunction) => void;
export declare const dateSplitterWithSeparator: (date: string, separator: TDateSeparator) => [string, string, string];
export declare const splitDate: (date: string, { separator, format }: TDateFormatOptions<TDateSeparator>) => SplittedDate;
export declare const stitchDate: (date: SplittedDate, { separator, format }: TDateFormatOptions<TDateSeparator>) => string;
export declare const giveValidateObject: (date: SplittedDate, type?: string) => void;
export declare const giveValidDateObject: (date: SplittedDate, type?: "BS" | "AD") => SplittedDate;
export declare const getNumberOfDaysInBSMonth: (yearMonth: {
year: number;
month: number;
}) => number;
export declare const parseBSDate: (date: string, formatOptions: TDateFormatOptions<TDateSeparator>) => ParsedDate;
export declare const childOf: (childNode: any, parentNode: any) => boolean;