diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2025-10-23 11:04:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 11:04:27 +0900 |
| commit | d203e1a446898bb867705d4191507f1fa196fa88 (patch) | |
| tree | 3454103198f3103096ca8dff7d6cb6b159b1f2c7 /packages/frontend/src/components/MkSuperMenu.vue | |
| parent | Bump version to 2025.10.1-beta.2 (diff) | |
| download | misskey-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.vue | 4 |
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; |