Skip to content

Commit 16bf799

Browse files
author
Legends
committed
CommentCompilationWarning typings
1 parent 02a955b commit 16bf799

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lib/CommentCompilationWarning.js

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

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

9+
/** @typedef {import("./Module.js")} Module */
10+
11+
/** @typedef {Object} Position
12+
* @property {number} column
13+
* @property {number} line
14+
*/
15+
16+
/** @typedef {Object} Loc
17+
* @property {Position} start
18+
* @property {Position} end
19+
*/
20+
921
class CommentCompilationWarning extends WebpackError {
22+
/**
23+
*
24+
* @param {string} message warning message
25+
* @param {Module} module affected module
26+
* @param {Loc} loc affected lines of code
27+
*/
1028
constructor(message, module, loc) {
1129
super(message);
1230

0 commit comments

Comments
 (0)