feat: document file changed watcher events

This commit is contained in:
2026-06-28 22:59:31 +08:00
parent 4e62e7e019
commit 64168054ac
5 changed files with 50 additions and 9 deletions
+8 -2
View File
@@ -303,8 +303,14 @@ export interface FileChangedEvent extends VerstakEvent {
name: 'file.changed';
payload: {
path: string;
size?: number;
changedAt: string;
title?: string;
operation: 'create' | 'update' | 'move' | 'delete' | 'external.create' | 'external.update' | 'external.delete';
type?: 'file' | 'folder' | 'symlink' | 'unknown';
workspaceRootPath?: string;
external?: boolean;
trashId?: string;
fromPath?: string;
changedAt?: string;
};
}
export interface NoteSavedEvent extends VerstakEvent {
+1 -1
View File
File diff suppressed because one or more lines are too long