]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
update typescript to 2.0.8, add strictNullChecks=true and fix CalendarSpec type ...
authorTiago Moraes <tiagoefmoraes@gmail.com>
Thu, 10 Nov 2016 13:55:37 +0000 (10:55 -0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 12 Nov 2016 17:10:53 +0000 (09:10 -0800)
moment.d.ts
package.json
typing-tests/tsconfig.json

index 23048bbfbf18d2ac4cfb7662e6be2e895a0e74a0..7b42fa18e7024fcdcea7249229331de59f1990b3 100644 (file)
@@ -67,8 +67,8 @@ declare namespace moment {
     lastWeek?: CalendarSpecVal;
     sameElse?: CalendarSpecVal;
 
-    // any additonal properties might be used with moment.calendarFormat
-    [x: string]: CalendarSpecVal;
+    // any additional properties might be used with moment.calendarFormat
+    [x: string]: CalendarSpecVal | undefined;
   }
 
   type RelativeTimeSpecVal = (
index 4de694a1befe912e54af35ef647541aa0cd742aa..6d83597e8ed08c30cd3abedf1b1d042657a5b3bc 100644 (file)
@@ -65,7 +65,7 @@
         "qunit-cli": "^0.1.4",
         "rollup": "latest",
         "spacejam": "latest",
-        "typescript": "^1.8.10",
+        "typescript": "^2.0.8",
         "coveralls": "^2.11.2",
         "nyc": "^2.1.4"
     },
index d000780bfaa9e44d7ffbee136a3c701fc88d8364..a7bc64869c6d1a2afd95b60ea82b7dd67e6cd026 100644 (file)
@@ -3,7 +3,8 @@
   "compilerOptions": {
     "module": "commonjs",
     "noEmit": true,
-    "noImplicitAny": true
+    "noImplicitAny": true,
+    "strictNullChecks": true
   },
   "files": [
     "../moment.d.ts",