mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Update moment-range definitions
This commit is contained in:
Vendored
+3
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Moment.js 2.0.3
|
||||
// Type definitions for Moment.js 2.0.4
|
||||
// Project: https://github.com/gf3/moment-range
|
||||
// Definitions by: Bart van den Burg <https://github.com/Burgov>, Wilgert Velinga <https://github.com/wilgert>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -34,6 +34,8 @@ declare module 'moment' {
|
||||
|
||||
toString (): string;
|
||||
|
||||
toArray (): Date[];
|
||||
|
||||
valueOf (): number;
|
||||
|
||||
center (): number;
|
||||
|
||||
@@ -42,3 +42,5 @@ var res17: moment.Range = range.clone();
|
||||
|
||||
var res18: moment.Moment = range.start;
|
||||
var res19: moment.Moment = range.end;
|
||||
|
||||
var res20: Date[] = range.toArray();
|
||||
|
||||
Reference in New Issue
Block a user