mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
change return type of monthrange to a tuple
This commit is contained in:
4
node-calendar/node-calendar.d.ts
vendored
4
node-calendar/node-calendar.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user