UNPKG

561 BTypeScriptView Raw
1interface GetMonthDaysParams {
2 month: number;
3 limitToCurrentDay?: boolean;
4 asArray?: boolean;
5}
6/**
7 * Returns the number of days in a given month.
8 * @param month: {number}, The number of the month to get where January = 1.
9 * @param limitToCurrentDay = false: {boolean}, If set to true, returns number of days up to current day.
10 * @param asArray = false: {boolean}, If set to true, returns array of days.
11 */
12export declare function getNumberOfDaysInMonth({ month, limitToCurrentDay, asArray }: GetMonthDaysParams): number | number[];
13export {};