UNPKG

1.15 kBTypeScriptView Raw
1import type { Issue } from 'fork-ts-checker-webpack-plugin/lib/issue';
2import type { Compiler } from 'webpack';
3interface Options {
4 /** Title prefix shown in the notifications. */
5 title?: string;
6 /** If set to `true`, warnings will not cause a notification. */
7 excludeWarnings?: boolean;
8 /** Trigger a notification every time. Call it "noisy-mode". */
9 alwaysNotify?: boolean;
10 /** Do not notify on the first build. This allows you to receive notifications on subsequent incremental builds without being notified on the initial build. */
11 skipFirstNotification?: boolean;
12 /** Skip notifications for successful builds. */
13 skipSuccessful?: boolean;
14}
15declare class ForkTsCheckerNotifierWebpackPlugin {
16 options: Options;
17 lastBuildSucceeded: boolean;
18 isFirstBuild: boolean;
19 titlePrefix: string;
20 constructor(options?: Options);
21 buildNotification(issues: Issue[]): {
22 title: string;
23 message: string;
24 icon: string;
25 } | undefined;
26 compilationDone: (issues: Issue[]) => Issue[];
27 apply(compiler: Compiler): void;
28}
29export = ForkTsCheckerNotifierWebpackPlugin;