diff --git a/src/common/obsidianEvents.ts b/src/common/obsidianEvents.ts new file mode 100644 index 0000000..209cb0e --- /dev/null +++ b/src/common/obsidianEvents.ts @@ -0,0 +1,10 @@ +import type { TFile } from "../deps"; +import type { FilePathWithPrefix, LoadedEntry } from "../lib/src/common/types"; + +export const EVENT_REQUEST_SHOW_HISTORY = "show-history"; + +declare global { + interface LSEvents { + [EVENT_REQUEST_SHOW_HISTORY]: { file: TFile, fileOnDB: LoadedEntry } | { file: FilePathWithPrefix, fileOnDB: LoadedEntry }; + } +}