Skip to content

Commit 3605035

Browse files
authored
Merge pull request webpack#7355 from mohsen1/type-ChunkRenderError
Add typing for ChunkRenderError
2 parents d2c6513 + f281723 commit 3605035

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/ChunkRenderError.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66

77
const WebpackError = require("./WebpackError");
88

9+
/** @typedef {import("./Chunk")} Chunk */
10+
911
class ChunkRenderError extends WebpackError {
12+
/**
13+
* Create a new ChunkRenderError
14+
* @param {Chunk} chunk A chunk
15+
* @param {string} file Related file
16+
* @param {Error} error Original error
17+
*/
1018
constructor(chunk, file, error) {
1119
super();
1220

0 commit comments

Comments
 (0)