diff --git a/node-calendar/node-calendar-tests.ts b/node-calendar/node-calendar-tests.ts
index 5a4a40a46..6de5d6cc4 100644
--- a/node-calendar/node-calendar-tests.ts
+++ b/node-calendar/node-calendar-tests.ts
@@ -1,5 +1,4 @@
///
-///
import node_calendar = require('node-calendar');
@@ -97,7 +96,7 @@ function assertIsNumber(n: number) {
assert(typeof n == 'number', 'Should be a number');
}
-function assertDayOfWeekMonth(d: IDayOfWeekMonth) {
+function assertDayOfWeekMonth(d: [number, number]) {
assert(d instanceof Array, 'Day of weak/month should be an array');
assert(d.length == 2, 'Day of weak/month array should contain 2 items');
assert(typeof d[0] == 'number', 'Day of month should be a number');
diff --git a/node-calendar/node-calendar.d.ts b/node-calendar/node-calendar.d.ts
index a1c3f0500..3839d6541 100755
--- a/node-calendar/node-calendar.d.ts
+++ b/node-calendar/node-calendar.d.ts
@@ -3,14 +3,6 @@
// Definitions by: Luzian Zagadinow
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-interface IDayOfWeekMonth extends Array {
- /** dayOfMonth */
- 0: number;
-
- /** dayOfWeek */
- 1: number;
-}
-
interface IWeekRow extends Array {
[dayIndex: number]: T;
}
@@ -183,7 +175,7 @@ declare module 'node-calendar' {
* @param {number} month
* Month for which the calendar should be generated.
*/
- itermonthdays2(year: number, month: number): IDayOfWeekMonth[];
+ itermonthdays2(year: number, month: number): [number, number][];
/**
* A matrix (array of array) representing a month's calendar.
@@ -217,7 +209,7 @@ declare module 'node-calendar' {
* @param {number} month
* Month for which the calendar should be generated.
*/
- monthdays2calendar(year: number, month: number): IMonthGrid;
+ monthdays2calendar(year: number, month: number): IMonthGrid<[number, number]>;
/**
* The specified year ready for formatting. The return value is an array
@@ -254,7 +246,7 @@ declare module 'node-calendar' {
* @param {number} width
* The number of months to include in each row. Default: 3
*/
- yeardays2calendar(year: number, width?: number): IYearGrid;
+ yeardays2calendar(year: number, width?: number): IYearGrid<[number, number]>;
}
// Undocumented