UNPKG

442 BTypeScriptView Raw
1interface GetMonthNameParams {
2 year?: number;
3 limitToCurrentMonth?: boolean;
4}
5/**
6 * Returns an array of month name strings up to the current month.
7 * @param year: {number}, The year to get the months for.
8 * @param limitToCurrentMonth = false: {boolean}, If set to true returns all the months for the current year.
9 */
10export declare function getMonthNames({ year, limitToCurrentMonth }?: GetMonthNameParams): string[];
11export {};