@types/friendly-errors-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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

import { Compiler, Plugin } 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, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/webpack

Credits

These definitions were written by Arne Bahlo.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/friendly-errors-webpack-plugin

Weekly Downloads

11,429

Version

0.1.7

License

MIT

Unpacked Size

4.79 kB

Total Files

5

Last publish

Collaborators

  • types