plugin-config.d.ts 762 B

12345678910111213141516
  1. import type webpack from 'webpack';
  2. import type { FormatterConfig } from './formatter';
  3. import type { IssueConfig } from './issue/issue-config';
  4. import type { Logger } from './logger';
  5. import type { ForkTsCheckerWebpackPluginOptions } from './plugin-options';
  6. import type { TypeScriptWorkerConfig } from './typescript/type-script-worker-config';
  7. interface ForkTsCheckerWebpackPluginConfig {
  8. async: boolean;
  9. typescript: TypeScriptWorkerConfig;
  10. issue: IssueConfig;
  11. formatter: FormatterConfig;
  12. logger: Logger;
  13. devServer: boolean;
  14. }
  15. declare function createPluginConfig(compiler: webpack.Compiler, options?: ForkTsCheckerWebpackPluginOptions): ForkTsCheckerWebpackPluginConfig;
  16. export { ForkTsCheckerWebpackPluginConfig, createPluginConfig };