0.1.7 • Published 6 months ago
@types/friendly-errors-webpack-plugin v0.1.7
Installation
npm install --save @types/friendly-errors-webpack-plugin
Summary
This package contains type definitions for friendly-errors-webpack-plugin (https://github.com/geowarin/friendly-errors-webpack-plugin).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/friendly-errors-webpack-plugin.
index.d.ts
// Type definitions for friendly-errors-webpack-plugin 0.1
// Project: https://github.com/geowarin/friendly-errors-webpack-plugin
// Definitions by: Arne Bahlo <https://github.com/bahlo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7
import { Plugin, Compiler } from 'webpack';
export = FriendlyErrorsWebpackPlugin;
declare class FriendlyErrorsWebpackPlugin extends Plugin {
constructor(options?: FriendlyErrorsWebpackPlugin.Options);
apply(compiler: Compiler): void;
}
declare namespace FriendlyErrorsWebpackPlugin {
enum Severity {
Error = "error",
Warning = "warning",
}
interface Options {
compilationSuccessInfo?: {
messages: string[],
notes: string[],
} | undefined;
onErrors?(severity: Severity, errors: string): void;
clearConsole?: boolean | undefined;
additionalFormatters?: Array<(errors: WebpackError[], type: Severity) => string[]> | undefined;
additionalTransformers?: Array<(error: any) => any> | undefined;
}
interface WebpackError {
message: string;
file: string;
origin: string;
name: string;
severity: Severity;
webpackError: any;
}
}
Additional Details
- Last updated: Tue, 06 Jul 2021 20:33:01 GMT
- Dependencies: @types/webpack
- Global values: none
Credits
These definitions were written by Arne Bahlo.