From b6704a84ff4b0e2f692e1d1a0764f0f8e0d046d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Mon, 3 Jun 2024 22:01:04 +0900 Subject: [PATCH] Update packages/frontend/src/os.ts Co-authored-by: anatawa12 --- packages/frontend/src/os.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/os.ts b/packages/frontend/src/os.ts index 359b334396..5e7a8a128e 100644 --- a/packages/frontend/src/os.ts +++ b/packages/frontend/src/os.ts @@ -93,7 +93,7 @@ type Unpromise = T extends Promise ? U : never; export function promiseDialog>( promise: T, - onSuccess?: ((res: Unpromise) => void) | null, + onSuccess?: ((res: Awaited) => void) | null, onFailure?: ((err: Misskey.api.APIError) => void) | null, text?: string, ): T {