0.1.5 • Published 6 months ago

@types/webpack-error-notification v0.1.5

Weekly downloads
9
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/webpack-error-notification

Summary

This package contains type definitions for webpack-error-notification (https://github.com/vsolovyov/webpack-error-notification#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-error-notification.

index.d.ts

// Type definitions for webpack-error-notification 0.1
// Project: https://github.com/vsolovyov/webpack-error-notification#readme
// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

import { Plugin, Stats } from 'webpack';

declare class WebpackErrorNotificationPlugin extends Plugin {
    /**
     * You can supply some strategy for the plugin to display notification.
     * If you don't supply anything, it will use process.platform as a strategy name.
     * `darwin` and `linux` are supported out of the box now.
     * You can also supply function(msg) {} as a strategy that will use your notification CLI tool of choice.
     */
    constructor(strategy?: WebpackErrorNotificationPlugin.Strategy, options?: WebpackErrorNotificationPlugin.Options);

    compileMessage(stats: Stats): string;
    compilationDone(stats: Stats): void;
}

declare namespace WebpackErrorNotificationPlugin {
    type Strategy = 'darwin' | 'linux' | ((msg: string) => void);

    interface Options {
        /** if you do not want to notify warnings, set this to `false` */
        notifyWarnings?: boolean | undefined;
    }
}

export = WebpackErrorNotificationPlugin;

Additional Details

  • Last updated: Fri, 02 Jul 2021 18:05:28 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

These definitions were written by Piotr Błażejewicz (Peter Blazejewicz).

0.1.4

7 months ago

0.1.3

8 months ago

0.1.5

6 months ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago