From dc2c4dca0845aa9666a7c7d7eb56265df252f82f Mon Sep 17 00:00:00 2001
From: badcode <alitokurr@gmail.com>
Date: Tue, 29 Apr 2025 16:55:15 +0000
Subject: [PATCH] docs: add fix for 'remote end hung up unexpectedly' error during initial sync (#1939)
---
index.d.ts | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/index.d.ts b/index.d.ts
index a74b5f5..9011ee3 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -1,4 +1,15 @@
-declare module '*.scss' {
- const content: string
+declare module "*.scss" {
+ const content: string
export = content
}
+
+// dom custom event
+interface CustomEventMap {
+ prenav: CustomEvent<{}>
+ nav: CustomEvent<{ url: FullSlug }>
+ themechange: CustomEvent<{ theme: "light" | "dark" }>
+ readermodechange: CustomEvent<{ mode: "on" | "off" }>
+}
+
+type ContentIndex = Record<FullSlug, ContentDetails>
+declare const fetchData: Promise<ContentIndex>
--
Gitblit v1.10.0