chore(types): add jsdoc types for UnsupportedFeatureWarning class

This commit is contained in:
Sean Larkin 2018-08-08 11:25:56 -07:00
parent 025338cc91
commit 7dc00dbc09
No known key found for this signature in database
GPG Key ID: B24730E407776925
1 changed files with 8 additions and 0 deletions

View File

@ -6,7 +6,15 @@
const WebpackError = require("./WebpackError");
/** @typedef {import("./Module")} Module */
/** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
class UnsupportedFeatureWarning extends WebpackError {
/**
* @param {Module} module module relevant to warning
* @param {string} message description of warning
* @param {DependencyLocation} loc location start and end positions of the module
*/
constructor(module, message, loc) {
super(message);