config.d.ts 1.1 KB

123456789101112131415161718
  1. import type { Chalk } from 'chalk';
  2. import type * as typescript from 'typescript';
  3. import type * as webpack from 'webpack';
  4. import type { LoaderOptions } from './interfaces';
  5. import type * as logger from './logger';
  6. interface ConfigFile {
  7. config?: any;
  8. error?: typescript.Diagnostic;
  9. }
  10. export declare function getConfigFile(compiler: typeof typescript, colors: Chalk, loader: webpack.LoaderContext<LoaderOptions>, loaderOptions: LoaderOptions, compilerCompatible: boolean, log: logger.Logger, compilerDetailsLogMessage: string): {
  11. configFilePath: string | undefined;
  12. configFile: ConfigFile;
  13. configFileError: webpack.WebpackError | undefined;
  14. };
  15. export declare function getConfigParseResult(compiler: typeof typescript, configFile: ConfigFile, basePath: string, configFilePath: string | undefined, loaderOptions: LoaderOptions): typescript.ParsedCommandLine;
  16. export declare function getParsedCommandLine(compiler: typeof typescript, loaderOptions: LoaderOptions, configFilePath: string): typescript.ParsedCommandLine | undefined;
  17. export {};
  18. //# sourceMappingURL=config.d.ts.map