mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Moment: Add a few more week related methods for version 2.1.0
This commit is contained in:
@@ -78,6 +78,14 @@ moment().startOf('year');
|
||||
moment().month(0).date(1).hours(0).minutes(0).seconds(0).milliseconds(0);
|
||||
moment().startOf('hour');
|
||||
moment().minutes(0).seconds(0).milliseconds(0);
|
||||
moment().weekday();
|
||||
moment().weekday(0);
|
||||
moment().isoWeekday(1);
|
||||
moment().isoWeekday();
|
||||
moment().weekYear(2);
|
||||
moment().weekYear();
|
||||
moment().isoWeekYear(3);
|
||||
moment().isoWeekYear();
|
||||
|
||||
var getMilliseconds: number = moment().milliseconds();
|
||||
var getSeconds: number = moment().seconds();
|
||||
|
||||
Vendored
+8
@@ -95,6 +95,14 @@ interface Moment {
|
||||
seconds(): number;
|
||||
milliseconds(ms: number): Moment;
|
||||
milliseconds(): number;
|
||||
weekday(): Moment;
|
||||
weekday(d: number): Moment;
|
||||
isoWeekday(): Moment;
|
||||
isoWeekday(d: number): Moment;
|
||||
weekYear(): Moment;
|
||||
weekYear(d: number): Moment;
|
||||
isoWeekYear(): Moment;
|
||||
isoWeekYear(d: number): Moment;
|
||||
|
||||
from(f: Moment): string;
|
||||
from(f: Moment, suffix: boolean): string;
|
||||
|
||||
Reference in New Issue
Block a user