summaryrefslogtreecommitdiff
path: root/packages/frontend/src/utility/virtual.d.ts
diff options
context:
space:
mode:
authoranatawa12 <anatawa12@icloud.com>2025-04-05 08:46:17 +0900
committerGitHub <noreply@github.com>2025-04-05 08:46:17 +0900
commit5949bb6c7fec5616e9d3f9ba21eb1ab1b41ed905 (patch)
treea09f7a48c07d0b99fc7c071cc22d88706ef045d7 /packages/frontend/src/utility/virtual.d.ts
parentNew Crowdin updates (#15740) (diff)
downloadmisskey-5949bb6c7fec5616e9d3f9ba21eb1ab1b41ed905.tar.gz
misskey-5949bb6c7fec5616e9d3f9ba21eb1ab1b41ed905.tar.bz2
misskey-5949bb6c7fec5616e9d3f9ba21eb1ab1b41ed905.zip
fix: unnecesary HMR when we opened setting page (#15756)
* refactor: add MarkerIdAssigner instead of processVueFile and remove transformedCodeCache object * chore: add minimatch, a glob matcher * chore: expose MarkerIdAssigner from plugin * Revert "chore: expose MarkerIdAssigner from plugin" This reverts commit 88c6d820f8635c35f1c15b4aac0987075d7cf8aa. * chore: add plugin to generate virtual module * chore: parse inlining earlier * chore: use virtual module in search * chore: use remove old generation * chore: fix type errors * chore: add patch to workaround vitejs/vite#19792 * chore: improve filtering files to process * chore: rename plugin * docs: add comment for plugin ordering * fix: unnecessary log * fix: spdx license header
Diffstat (limited to 'packages/frontend/src/utility/virtual.d.ts')
-rw-r--r--packages/frontend/src/utility/virtual.d.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/frontend/src/utility/virtual.d.ts b/packages/frontend/src/utility/virtual.d.ts
new file mode 100644
index 0000000000..59470a1f5e
--- /dev/null
+++ b/packages/frontend/src/utility/virtual.d.ts
@@ -0,0 +1,18 @@
+/*
+ * SPDX-FileCopyrightText: syuilo and misskey-project
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
+declare module 'search-index:settings' {
+ export type GeneratedSearchIndexItem = {
+ id: string;
+ path?: string;
+ label: string;
+ keywords: string[];
+ icon?: string;
+ inlining?: string[];
+ children?: GeneratedSearchIndexItem[];
+ };
+
+ export const searchIndexes: GeneratedSearchIndexItem[];
+}