Merge pull request #7866 from webpack/feature/type-unsupported-feature-warning

chore(types): add jsdoc types for UnsupportedFeatureWarning class
This commit is contained in:
Tobias Koppers 2018-08-09 00:39:02 +02:00 odevzdal GitHub
revize 09b6eaed8a
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 8 přidání a 0 odebrání

Zobrazit soubor

@ -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);