Skip to content

Commit 3d72d61

Browse files
committed
Add CompilerStatus type
1 parent 5923c62 commit 3d72d61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/MultiCompiler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const MultiWatching = require("./MultiWatching");
1313

1414
/** @typedef {import("./Compiler")} Compiler */
1515

16+
/** @typedef {number} CompilerStatus */
17+
1618
const STATUS_PENDING = 0;
1719
const STATUS_DONE = 1;
1820
const STATUS_NEW = 2;
@@ -216,6 +218,8 @@ module.exports = class MultiCompiler {
216218

217219
const watchings = [];
218220
const allStats = this.compilers.map(() => null);
221+
222+
/** @type {CompilerStatus[]} */
219223
const compilerStatus = this.compilers.map(() => STATUS_PENDING);
220224

221225
if (this.validateDependencies(handler)) {

0 commit comments

Comments
 (0)