@@ -224,17 +224,19 @@ const { isSourceEqual } = require("./util/source");
224224 * @property {EntryOptions= } entryOptions
225225 */
226226
227+ /** @typedef {LazySet<string> } FileSystemDependencies */
228+
227229/** @typedef {EXPECTED_ANY } ExecuteModuleExports */
228230
229231/**
230232 * @typedef {object } ExecuteModuleResult
231233 * @property {ExecuteModuleExports } exports
232234 * @property {boolean } cacheable
233- * @property {Map<string, { source: Source, info: AssetInfo | undefined }> } assets
234- * @property {LazySet<string> } fileDependencies
235- * @property {LazySet<string> } contextDependencies
236- * @property {LazySet<string> } missingDependencies
237- * @property {LazySet<string> } buildDependencies
235+ * @property {ExecuteModuleAssets } assets
236+ * @property {FileSystemDependencies } fileDependencies
237+ * @property {FileSystemDependencies } contextDependencies
238+ * @property {FileSystemDependencies } missingDependencies
239+ * @property {FileSystemDependencies } buildDependencies
238240 */
239241
240242/**
@@ -261,9 +263,11 @@ const { isSourceEqual } = require("./util/source");
261263 * @property {WebpackRequire } require require function
262264 */
263265
266+ /** @typedef {Map<string, { source: Source, info: AssetInfo | undefined }> } ExecuteModuleAssets */
267+
264268/**
265269 * @typedef {object } ExecuteModuleContext
266- * @property {Map<string, { source: Source, info: AssetInfo | undefined }> } assets
270+ * @property {ExecuteModuleAssets } assets
267271 * @property {Chunk } chunk
268272 * @property {ChunkGraph } chunkGraph
269273 * @property {WebpackRequire= } __webpack_require__
@@ -1223,20 +1227,20 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
12231227 this . emittedAssets = new Set ( ) ;
12241228 /** @type {Set<string> } */
12251229 this . comparedForEmitAssets = new Set ( ) ;
1226- /** @type {LazySet<string> } */
1230+ /** @type {FileSystemDependencies } */
12271231 this . fileDependencies = new LazySet ( ) ;
1228- /** @type {LazySet<string> } */
1232+ /** @type {FileSystemDependencies } */
12291233 this . contextDependencies = new LazySet ( ) ;
1230- /** @type {LazySet<string> } */
1234+ /** @type {FileSystemDependencies } */
12311235 this . missingDependencies = new LazySet ( ) ;
1232- /** @type {LazySet<string> } */
1236+ /** @type {FileSystemDependencies } */
12331237 this . buildDependencies = new LazySet ( ) ;
12341238 // TODO webpack 6 remove
12351239 this . compilationDependencies = {
12361240 add : util . deprecate (
12371241 /**
12381242 * @param {string } item item
1239- * @returns {LazySet<string> } file dependencies
1243+ * @returns {FileSystemDependencies } file dependencies
12401244 */
12411245 ( item ) => this . fileDependencies . add ( item ) ,
12421246 "Compilation.compilationDependencies is deprecated (used Compilation.fileDependencies instead)" ,
0 commit comments