change return type of monthrange to a tuple

This commit is contained in:
Luzian Zagadinow
2015-06-04 14:18:34 -04:00
parent 7c4b699df0
commit 034379ca89

View File

@@ -288,10 +288,10 @@ declare module 'node-calendar' {
*
* @throws {IllegalMonthError} if the provided month is invalid.
*
* @return {number[]}
* @return {[number, number]}
* starting weekday (0-6 ~ Mon-Sun) and number of days (28-31) for year, month.
*/
export function monthrange(year: number, month: number): number[];
export function monthrange(year: number, month: number): [number, number];
/**
* Sets the locale for use in extracting month and weekday names.