/** * The following code is modified based on * https://github.com/webpack/webpack/blob/4b4ca3b/lib/MultiWatching.js * * MIT Licensed * Author Tobias Koppers @sokra * Copyright (c) JS Foundation and other contributors * https://github.com/webpack/webpack/blob/main/LICENSE */ import { MultiCompiler } from "./MultiCompiler"; import { Watching } from "./Watching"; /** @typedef {import("./MultiCompiler")} MultiCompiler */ /** @typedef {import("./Watching")} Watching */ /** * @template T * @callback Callback * @param {(Error | null)=} err * @param {T=} result */ declare class MultiWatching { watchings: Watching[]; compiler: MultiCompiler; /** * @param {Watching[]} watchings child compilers' watchers * @param {MultiCompiler} compiler the compiler */ constructor(watchings: Watching[], compiler: MultiCompiler); invalidate(callback: any): void; /** * @param {Callback} callback signals when the watcher is closed * @returns {void} */ close(callback: any): void; suspend(): void; resume(): void; } export default MultiWatching;