From 8b45dd1d247ee72c1c93e841063d2d654a1daf61 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Fri, 8 Nov 2024 11:12:35 +0000 Subject: [PATCH] .. --- src/common/obsidianEvents.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/common/obsidianEvents.ts 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 }; + } +}