File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed
Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const Chunk = require("./Chunk");
99class HotUpdateChunk extends Chunk {
1010 constructor ( ) {
1111 super ( ) ;
12+ /** @type {(string|number)[] } */
1213 this . removedModules = undefined ;
1314 }
1415}
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 55"use strict" ;
66
77module . exports = class WebpackError extends Error {
8+ /**
9+ * @param {string } message the error message
10+ */
811 constructor ( message ) {
912 super ( message ) ;
1013
You can’t perform that action at this time.
0 commit comments