summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkSuperMenu.vue
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-10-23 11:04:27 +0900
committerGitHub <noreply@github.com>2025-10-23 11:04:27 +0900
commitd203e1a446898bb867705d4191507f1fa196fa88 (patch)
tree3454103198f3103096ca8dff7d6cb6b159b1f2c7 /packages/frontend/src/components/MkSuperMenu.vue
parentBump version to 2025.10.1-beta.2 (diff)
downloadmisskey-d203e1a446898bb867705d4191507f1fa196fa88.tar.gz
misskey-d203e1a446898bb867705d4191507f1fa196fa88.tar.bz2
misskey-d203e1a446898bb867705d4191507f1fa196fa88.zip
refactor(frontend): フロントエンドの型エラー解消 (#16694)
Diffstat (limited to 'packages/frontend/src/components/MkSuperMenu.vue')
-rw-r--r--packages/frontend/src/components/MkSuperMenu.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkSuperMenu.vue b/packages/frontend/src/components/MkSuperMenu.vue
index dbc673333c..236afa127c 100644
--- a/packages/frontend/src/components/MkSuperMenu.vue
+++ b/packages/frontend/src/components/MkSuperMenu.vue
@@ -64,6 +64,8 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>
<script lang="ts">
+import type { Awaitable } from '@/types/misc.js';
+
export type SuperMenuDef = {
title?: string;
items: ({
@@ -80,7 +82,7 @@ export type SuperMenuDef = {
text: string;
danger?: boolean;
active?: boolean;
- action: (ev: MouseEvent) => void | Promise<void>;
+ action: (ev: MouseEvent) => Awaitable<void>;
} | {
type?: 'link';
to: string;