Skip to content

Commit dbb4e7f

Browse files
committed
add some random types
1 parent 77b463b commit dbb4e7f

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

lib/Chunk.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ class Chunk {
323323
return this._modules.has(module);
324324
}
325325

326+
/**
327+
* @returns {Module[]}
328+
*/
326329
getModules() {
327330
return this._modules.getFromCache(getArray);
328331
}

lib/HotUpdateChunk.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const Chunk = require("./Chunk");
99
class HotUpdateChunk extends Chunk {
1010
constructor() {
1111
super();
12+
/** @type {(string|number)[]} */
1213
this.removedModules = undefined;
1314
}
1415
}

lib/Template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ class Template {
257257
var maxId = bounds[1];
258258
if (minId !== 0) source.add("Array(" + minId + ").concat(");
259259
source.add("[\n");
260+
/** @type {Map<string|number, Module>} */
260261
const modules = new Map();
261262
for (const module of allModules) {
262263
modules.set(module.id, module);

lib/WebpackError.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"use strict";
66

77
module.exports = class WebpackError extends Error {
8+
/**
9+
* @param {string} message the error message
10+
*/
811
constructor(message) {
912
super(message);
1013

0 commit comments

Comments
 (0)