amis-rpc-design/node_modules/fork-ts-checker-webpack-plugin/lib/files-change.d.ts

18 lines
851 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type * as webpack from 'webpack';
interface FilesChange {
changedFiles?: string[];
deletedFiles?: string[];
}
declare function getFilesChange(compiler: webpack.Compiler): FilesChange;
declare function consumeFilesChange(compiler: webpack.Compiler): FilesChange;
declare function updateFilesChange(compiler: webpack.Compiler, change: FilesChange): void;
declare function clearFilesChange(compiler: webpack.Compiler): void;
/**
* Computes aggregated files change based on the subsequent files changes.
*
* @param changes List of subsequent files changes
* @returns Files change that represents all subsequent changes as a one event
*/
declare function aggregateFilesChanges(changes: FilesChange[]): FilesChange;
export { FilesChange, getFilesChange, consumeFilesChange, updateFilesChange, clearFilesChange, aggregateFilesChanges, };