nanakshahi
Version:
A JavaScript Library to get Nanakshahi Dates and Gurpurabs
13 lines (12 loc) • 558 B
TypeScript
import type { GurpurabsForMonth } from './types';
/**
* Returns all Gurpurabs for a Nanakshahi month.
*
* @param month - Nanakshahi month (1-12).
* @param year - Nanakshahi year (default: current Nanakshahi year).
* @returns Gurpurab list for the month with Gregorian and localized date fields.
* @throws {TypeError} If month/year is not an integer.
* @throws {RangeError} If month/year is outside supported bounds.
* @example getGurpurabsForMonth(1)
*/
export declare function getGurpurabsForMonth(month: number, year?: number): GurpurabsForMonth;