# @types/friendly-errors-webpack-plugin

> TypeScript definitions for friendly-errors-webpack-plugin

Latest version **1.7.0** (published 2024-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/friendly-errors-webpack-plugin
pnpm add @types/friendly-errors-webpack-plugin
yarn add @types/friendly-errors-webpack-plugin
bun add @types/friendly-errors-webpack-plugin
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.7.0 |
| Published | 2024-11-01 |
| First published | 2017-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/friendly-errors-webpack-plugin
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/friendly-errors-webpack-plugin
- npm.io page: https://npm.io/package/@types/friendly-errors-webpack-plugin

## Dependencies (1)

- [@types/webpack](https://npm.io/package/@types/webpack.md) ^4

## Recent versions

- 1.7.0 (latest) — 2024-11-01
- 0.1.7 (ts4.5) — 2023-11-07
- 0.1.4 (ts4.0) — 2021-07-06
- 0.1.2 (ts3.5) — 2019-07-16
- 0.1.6 — 2023-10-18
- 0.1.5 — 2023-09-14
- 0.1.3 — 2021-03-25
- 0.1.1 — 2017-10-04
- 0.1.0 — 2017-09-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/friendly-errors-webpack-plugin/index.d.ts)
````ts
import { Plugin } from "webpack";

export = FriendlyErrorsWebpackPlugin;

declare class FriendlyErrorsWebpackPlugin extends Plugin {
    constructor(options?: FriendlyErrorsWebpackPlugin.Options);
}

declare namespace FriendlyErrorsWebpackPlugin {
    type Severity = "error" | "warning";

    interface Options {
        compilationSuccessInfo?: {
            messages: string[];
            notes: string[];
        } | undefined;

        /**
         * You can listen to errors transformed and prioritized by the plugin.
         */
        onErrors?(severity: Severity, errors: WebpackError[]): void;

        /**
         * Whether the console should be cleared between each compilation.
         * @default true
         */
        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: Fri, 01 Nov 2024 16:36:34 GMT
 * Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack)

# Credits
These definitions were written by [Arne Bahlo](https://github.com/bahlo).

---
_Source: https://npm.io/package/@types/friendly-errors-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
