From: Tiago Moraes Date: Thu, 10 Nov 2016 13:55:37 +0000 (-0300) Subject: update typescript to 2.0.8, add strictNullChecks=true and fix CalendarSpec type ... X-Git-Tag: 2.17.0~4^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7390272ed18b62fec358ca98d3d9fa0ce8c5c05;p=thirdparty%2Fmoment.git update typescript to 2.0.8, add strictNullChecks=true and fix CalendarSpec type #3589 --- diff --git a/moment.d.ts b/moment.d.ts index 23048bbfb..7b42fa18e 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -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 = ( diff --git a/package.json b/package.json index 4de694a1b..6d83597e8 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/typing-tests/tsconfig.json b/typing-tests/tsconfig.json index d000780bf..a7bc64869 100644 --- a/typing-tests/tsconfig.json +++ b/typing-tests/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "module": "commonjs", "noEmit": true, - "noImplicitAny": true + "noImplicitAny": true, + "strictNullChecks": true }, "files": [ "../moment.d.ts",