/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lib/errors/ModuleHashingError.js
35 строк
788 B
Alexander Akait
refactor: annotate constructor fields with @type to improve type coverage (#21265)
24 июн 2026, 13:36
Не верифицирован
24 июн 2026, 13:36
e8f9334
Код
Авторство
О чём код?
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const WebpackError = require("./WebpackError"); /** @typedef {import("../Module")} Module */ class ModuleHashingError extends WebpackError { /** * Create a new ModuleHashingError * @param {Module} module related module * @param {Error} error Original error */ constructor(module, error) { super(); /** @type {string} */ this.name = "ModuleHashingError"; /** @type {Error} */ this.error = error; /** @type {string} */ this.message = error.message; /** @type {string | undefined} */ this.details = error.stack; /** @type {Module} */ this.module = module; } } /** @type {typeof ModuleHashingError} */ module.exports = ModuleHashingError;