| 1 | import * as webpack from 'webpack';
|
|---|
| 2 | import { SyncHook, SyncWaterfallHook, AsyncSeriesWaterfallHook } from 'tapable';
|
|---|
| 3 | import { FilesChange } from '../reporter';
|
|---|
| 4 | import { Issue } from '../issue';
|
|---|
| 5 | declare function createForkTsCheckerWebpackPluginHooks(): {
|
|---|
| 6 | start: AsyncSeriesWaterfallHook<FilesChange, webpack.compilation.Compilation, any>;
|
|---|
| 7 | waiting: SyncHook<webpack.compilation.Compilation, any, any>;
|
|---|
| 8 | canceled: SyncHook<webpack.compilation.Compilation, any, any>;
|
|---|
| 9 | error: SyncHook<Error, webpack.compilation.Compilation, any>;
|
|---|
| 10 | issues: SyncWaterfallHook<Issue[], webpack.compilation.Compilation | undefined, void>;
|
|---|
| 11 | };
|
|---|
| 12 | declare type ForkTsCheckerWebpackPluginHooks = ReturnType<typeof createForkTsCheckerWebpackPluginHooks>;
|
|---|
| 13 | declare function getForkTsCheckerWebpackPluginHooks(compiler: webpack.Compiler | webpack.MultiCompiler): {
|
|---|
| 14 | start: AsyncSeriesWaterfallHook<FilesChange, webpack.compilation.Compilation, any>;
|
|---|
| 15 | waiting: SyncHook<webpack.compilation.Compilation, any, any>;
|
|---|
| 16 | canceled: SyncHook<webpack.compilation.Compilation, any, any>;
|
|---|
| 17 | error: SyncHook<Error, webpack.compilation.Compilation, any>;
|
|---|
| 18 | issues: SyncWaterfallHook<Issue[], webpack.compilation.Compilation | undefined, void>;
|
|---|
| 19 | };
|
|---|
| 20 | export { getForkTsCheckerWebpackPluginHooks, ForkTsCheckerWebpackPluginHooks };
|
|---|