mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
add get quater method
This commit is contained in:
@@ -102,6 +102,7 @@ var getHours: number = moment().hours();
|
||||
var getDate: number = moment().date();
|
||||
var getDay: number = moment().day();
|
||||
var getMonth: number = moment().month();
|
||||
var getQuater: number = moment().quarter();
|
||||
var getYear: number = moment().year();
|
||||
|
||||
moment().hours(0).minutes(0).seconds(0).milliseconds(0);
|
||||
|
||||
4
moment/moment.d.ts
vendored
4
moment/moment.d.ts
vendored
@@ -1,7 +1,8 @@
|
||||
// Type definitions for Moment.js 2.4.0
|
||||
// Type definitions for Moment.js 2.5.0
|
||||
// Project: https://github.com/timrwood/moment
|
||||
// Definitions by: Michael Lakerveld <https://github.com/Lakerfield>
|
||||
// 2.4.0 Aaron King <https://github.com/kingdango>
|
||||
// 2.5.0 Hiroki Horiuchi <https://github.com/horiuchi>
|
||||
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
|
||||
@@ -81,6 +82,7 @@ interface Moment {
|
||||
|
||||
year(y: number): Moment;
|
||||
year(): number;
|
||||
quarter(): number;
|
||||
month(M: number): Moment;
|
||||
month(M: string): Moment;
|
||||
month(): number;
|
||||
|
||||
Reference in New Issue
Block a user