Add skeleton for file event handling

This commit is contained in:
Andras Schmelczer 2024-12-08 10:58:03 +00:00
parent 1420cf104e
commit 8a7cc65e88
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
6 changed files with 259 additions and 4 deletions

View file

@ -0,0 +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;
}