files-change.d.ts 851 B

1234567891011121314151617
  1. import type * as webpack from 'webpack';
  2. interface FilesChange {
  3. changedFiles?: string[];
  4. deletedFiles?: string[];
  5. }
  6. declare function getFilesChange(compiler: webpack.Compiler): FilesChange;
  7. declare function consumeFilesChange(compiler: webpack.Compiler): FilesChange;
  8. declare function updateFilesChange(compiler: webpack.Compiler, change: FilesChange): void;
  9. declare function clearFilesChange(compiler: webpack.Compiler): void;
  10. /**
  11. * Computes aggregated files change based on the subsequent files changes.
  12. *
  13. * @param changes List of subsequent files changes
  14. * @returns Files change that represents all subsequent changes as a one event
  15. */
  16. declare function aggregateFilesChanges(changes: FilesChange[]): FilesChange;
  17. export { FilesChange, getFilesChange, consumeFilesChange, updateFilesChange, clearFilesChange, aggregateFilesChanges, };