From 422f8bc40117b19266031cc9533e29857107ae88 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Wed, 15 Feb 2017 08:59:57 -0600 Subject: [PATCH 1/2] Make @types/later compatible with strictNullChecks projects --- later/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/later/index.d.ts b/later/index.d.ts index c5c2449a00..5dd68ec90a 100644 --- a/later/index.d.ts +++ b/later/index.d.ts @@ -142,7 +142,7 @@ declare namespace later { * For acces to custom time periods created as extension to the later static type * and modifiers created on the later modifier static type. */ - [ timeperiodAndModifierName: string ]: number[]; + [ timeperiodAndModifierName: string ]: number[] | undefined; } interface ParseStatic { From f001b91f4b071b328c3f6a820dffc8d1fb7af283 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Wed, 15 Feb 2017 09:16:03 -0600 Subject: [PATCH 2/2] Modify tests --- later/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/later/tsconfig.json b/later/tsconfig.json index 78a6cefd34..add4a07667 100644 --- a/later/tsconfig.json +++ b/later/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../"