loadConfigFile.d.ts 427 B

123456789101112131415161718
  1. import type { MergedRollupOptions, RollupWarning } from './rollup';
  2. export interface BatchWarnings {
  3. add: (warning: RollupWarning) => void;
  4. readonly count: number;
  5. flush: () => void;
  6. readonly warningOccurred: boolean;
  7. }
  8. export type LoadConfigFile = typeof loadConfigFile;
  9. export function loadConfigFile(
  10. fileName: string,
  11. commandOptions: any
  12. ): Promise<{
  13. options: MergedRollupOptions[];
  14. warnings: BatchWarnings;
  15. }>;