vault-link/frontend/sync-client/src/sync-operations/file-change-notifier.ts
2026-04-06 11:17:18 +01:00

12 lines
381 B
TypeScript

import type { RelativePath } from "./types";
import { EventListeners } from "../utils/data-structures/event-listeners";
export class FileChangeNotifier {
public readonly onFileChanged = new EventListeners<
(filePath: RelativePath) => unknown
>();
public notifyOfFileChange(filePath: RelativePath): void {
this.onFileChanged.trigger(filePath);
}
}