]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Small fixes to the .d.ts file
authorErik Krogh Kristensen <erik@webbies.dk>
Mon, 6 Mar 2017 19:55:09 +0000 (20:55 +0100)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 11 Mar 2017 23:42:59 +0000 (01:42 +0200)
moment.d.ts

index aaa955675788ac5893c444cc7e0c0e306ba7f025..d3e7e8faad4a97ecd34828e9de1eb5fc247ce823 100644 (file)
@@ -58,7 +58,7 @@ declare namespace moment {
     doy: number;
   }
 
-  type CalendarSpecVal = string | ((m?: Moment, now?: Moment) => string);
+  type CalendarSpecVal = string | ((m?: MomentInput, now?: Moment) => string);
   interface CalendarSpec {
     sameDay?: CalendarSpecVal;
     nextDay?: CalendarSpecVal;
@@ -399,11 +399,11 @@ declare namespace moment {
   type LocaleSpecifier = string | Moment | Duration | string[] | boolean;
 
   interface MomentCreationData {
-    input: string;
-    format: string;
+    input: MomentInput;
+    format?: MomentFormatSpecification;
     locale: Locale;
     isUTC: boolean;
-    strict: boolean;
+    strict?: boolean;
   }
 
   interface Moment {
@@ -551,7 +551,7 @@ declare namespace moment {
     zone(b: number|string): Moment;
     utcOffset(): number;
     utcOffset(b: number|string, keepLocalTime?: boolean): Moment;
-    isUTCOffset(): boolean;
+    isUtcOffset(): boolean;
     daysInMonth(): number;
     isDST(): boolean;