Skip to content

Commit 7e84b63

Browse files
committed
Fix strict type error
1 parent 0a9feb5 commit 7e84b63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ function removeMap<T>(obj: _.Dictionary<T>, keys: (string | undefined)[]) {
208208
}
209209

210210
export default class I18nextPlugin {
211-
protected compilation: wp.Compilation;
211+
protected compilation!: wp.Compilation;
212212
protected option: InternalOption;
213-
protected context: string;
213+
protected context!: string;
214214
protected missingKeys: CollectedKeys = {};
215215
protected startTime = Date.now();
216216
protected prevTimestamps: {[file: string]: number} = {};
@@ -531,4 +531,4 @@ export default class I18nextPlugin {
531531
this.compilation.warnings.push(msg);
532532
}
533533
}
534-
}
534+
}

0 commit comments

Comments
 (0)