diff --git a/plugin/src/events/file-event-handler.ts b/plugin/src/events/file-event-handler.ts index bd0124f0..1b8ad207 100644 --- a/plugin/src/events/file-event-handler.ts +++ b/plugin/src/events/file-event-handler.ts @@ -1,8 +1,8 @@ import { TAbstractFile } from "obsidian"; export interface FileEventHandler { - onCreate: (path: TAbstractFile) => void; - onDelete: (path: TAbstractFile) => void; - onRename: (path: TAbstractFile, oldPath: string) => void; - onModify: (path: TAbstractFile) => void; + onCreate: (path: TAbstractFile) => Promise; + onDelete: (path: TAbstractFile) => Promise; + onRename: (path: TAbstractFile, oldPath: string) => Promise; + onModify: (path: TAbstractFile) => Promise; }