Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
16 lines
573 B
Plaintext
16 lines
573 B
Plaintext
import { type Event } from '@parcel/watcher';
|
|
type OnChange = (events: Array<Event>) => Promise<void>;
|
|
export type SourceFileWatcherEvent = Event;
|
|
export default class SourceFileWatcher implements Disposable {
|
|
private subscriptions;
|
|
private roots;
|
|
private onChange;
|
|
constructor(roots: Array<string>, onChange: OnChange);
|
|
start(): Promise<void>;
|
|
private normalizeEvents;
|
|
expandDirectoryDeleteEvents(events: Array<Event>, prevKnownFiles: Array<string>): Promise<Array<Event>>;
|
|
stop(): Promise<void>;
|
|
[Symbol.dispose](): void;
|
|
}
|
|
export {};
|