8000 fix: types of ContextModule · webpack/webpack@df3da48 · GitHub
[go: up one dir, main page]

Skip to cont 8000 ent

Commit df3da48

Browse files
authored
fix: types of ContextModule
1 parent fe2ce39 commit df3da48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/ContextModule.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const {
2929
const makeSerializable = require("./util/makeSerializable");
3030

3131
/** @typedef {import("webpack-sources").Source} Source */
32+
/** @typedef {import("../declarations/WebpackOptions").ResolveOptions} ResolveOptions */
3233
/** @typedef {import("../declarations/WebpackOptions").WebpackOptionsNormalized} WebpackOptions */
3334
/** @typedef {import("./Chunk")} Chunk */
3435
/** @typedef {import("./Chunk").ChunkId} ChunkId */
@@ -83,7 +84,7 @@ const makeSerializable = require("./util/makeSerializable");
8384
* @property {false|string|string[]} resource
8485
* @property {string=} resourceQuery
8586
* @property {string=} resourceFragment
86-
* @property {TODO} resolveOptions
87+
* @property {ResolveOptions=} resolveOptions
8788
*/
8889

8990
/** @typedef {ContextOptions & ContextModuleOptionsExtras} ContextModuleOptions */

types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3082,7 +3082,7 @@ declare interface ContextModuleOptions {
30823082
resource: string | false | string[];
30833083
resourceQuery?: string;
30843084
resourceFragment?: string;
3085-
resolveOptions: any;
3085+
resolveOptions?: ResolveOptions;
30863086
}
30873087
declare class ContextReplacementPlugin {
30883088
constructor(

0 commit comments

Comments
 (0)
0