From 34334eabed151cf5fa881d6b34f75107a2d3871e Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 06 Feb 2024 04:36:31 +0000
Subject: [PATCH] perf: don't load mermaid if its not on the page

---
 index.d.ts |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/index.d.ts b/index.d.ts
index aec536d..a6c594f 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -6,6 +6,7 @@
 // dom custom event
 interface CustomEventMap {
   nav: CustomEvent<{ url: FullSlug }>
+  themechange: CustomEvent<{ theme: "light" | "dark" }>
 }
 
 declare const fetchData: Promise<ContentIndex>

--
Gitblit v1.10.0