From 7e84b63e99a23d7ecef09e6311348bcb495aefe7 Mon Sep 17 00:00:00 2001 From: Gyusun Yeom Date: Sun, 9 Jun 2019 00:01:48 +0900 Subject: [PATCH] Fix strict type error --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 285fa1d..f682667 100644 --- a/src/index.ts +++ b/src/index.ts @@ -208,9 +208,9 @@ function removeMap(obj: _.Dictionary, keys: (string | undefined)[]) { } export default class I18nextPlugin { - protected compilation: wp.Compilation; + protected compilation!: wp.Compilation; protected option: InternalOption; - protected context: string; + protected context!: string; protected missingKeys: CollectedKeys = {}; protected startTime = Date.now(); protected prevTimestamps: {[file: string]: number} = {}; @@ -531,4 +531,4 @@ export default class I18nextPlugin { this.compilation.warnings.push(msg); } } -} \ No newline at end of file +}