mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Moment: Add string overloads for month and day
This commit is contained in:
@@ -70,7 +70,9 @@ moment().minutes(30);
|
||||
moment().hours(12);
|
||||
moment().date(5);
|
||||
moment().day(5);
|
||||
moment().day("Sunday");
|
||||
moment().month(5);
|
||||
moment().month("January");
|
||||
moment().year(1984);
|
||||
moment().startOf('year');
|
||||
moment().month(0).date(1).hours(0).minutes(0).seconds(0).milliseconds(0);
|
||||
|
||||
Vendored
+2
@@ -80,8 +80,10 @@ interface Moment {
|
||||
year(y: number): Moment;
|
||||
year(): number;
|
||||
month(M: number): Moment;
|
||||
month(M: string): Moment;
|
||||
month(): number;
|
||||
day(d: number): Moment;
|
||||
day(d: string): Moment;
|
||||
day(): number;
|
||||
date(d: number): Moment;
|
||||
date(): number;
|
||||
|
||||
Reference in New Issue
Block a user