mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
add moment#isSameOrAfter
This commit is contained in:
Vendored
+3
-2
@@ -18,7 +18,7 @@ declare module moment {
|
||||
seconds?: number;
|
||||
milliseconds?: number;
|
||||
}
|
||||
|
||||
|
||||
interface MomentInput {
|
||||
/** Year */
|
||||
years?: number;
|
||||
@@ -313,6 +313,7 @@ declare module moment {
|
||||
* @since 2.10.7+
|
||||
*/
|
||||
isSameOrBefore(b: MomentComparable, granularity?: string): boolean;
|
||||
isSameOrAfter(b: MomentComparable, granularity?: string): boolean;
|
||||
|
||||
/**
|
||||
* @deprecated since version 2.8.0
|
||||
@@ -344,7 +345,7 @@ declare module moment {
|
||||
get(unit: string): number;
|
||||
set(unit: string, value: number): Moment;
|
||||
set(objectLiteral: MomentInput): Moment;
|
||||
|
||||
|
||||
/**
|
||||
* This returns an object containing year, month, day-of-month, hour, minute, seconds, milliseconds.
|
||||
* @since 2.10.5+
|
||||
|
||||
Reference in New Issue
Block a user