Browse Source

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

chore(types): add jsdoc types for UnsupportedFeatureWarning class
tags/v4.17.0
Tobias Koppers 2 years ago
committed by GitHub
parent
commit
09b6eaed8a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      lib/UnsupportedFeatureWarning.js

+ 8
- 0
lib/UnsupportedFeatureWarning.js 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);



Loading…
Cancel
Save