1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-23 19:14:19 +02:00

refactor(frontend): フロントエンドの型エラー解消 (#16694)

This commit is contained in:
かっこかり
2025-10-23 11:04:27 +09:00
committed by GitHub
parent 4988719a2e
commit d203e1a446
8 changed files with 26 additions and 19 deletions

View File

@@ -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;