vault-link/plugin/src/events/file-event-handler.ts

8 lines
266 B
TypeScript

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;
}