Skip to content

Commit 09b6eae

Browse files
authored
Merge pull request webpack#7866 from webpack/feature/type-unsupported-feature-warning
chore(types): add jsdoc types for UnsupportedFeatureWarning class
2 parents 177dcf5 + 7dc00db commit 09b6eae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/UnsupportedFeatureWarning.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("./Module")} Module */
10+
/** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
11+
912
class UnsupportedFeatureWarning extends WebpackError {
13+
/**
14+
* @param {Module} module module relevant to warning
15+
* @param {string} message description of warning
16+
* @param {DependencyLocation} loc ___location start and end positions of the module
17+
*/
1018
constructor(module, message, loc) {
1119
super(message);
1220

0 commit comments

Comments
 (0)