From b57a0ac0d4101d12ae61b4b018f6e639e734e6cc Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Tue, 10 Dec 2024 21:37:25 +0000 Subject: [PATCH] Make async --- plugin/src/events/file-event-handler.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/src/events/file-event-handler.ts b/plugin/src/events/file-event-handler.ts index bd0124f..1b8ad20 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; }