From 2340ef005db7fd592f5670779246f8b8d1ed2a7b Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 27 Oct 2024 17:25:09 +0900 Subject: [PATCH] lint --- packages/frontend/src/os.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/os.ts b/packages/frontend/src/os.ts index df220f0a17..41e05cb9da 100644 --- a/packages/frontend/src/os.ts +++ b/packages/frontend/src/os.ts @@ -93,12 +93,9 @@ export const apiWithDialog = (, ->( +export function promiseDialog>( promise: T, - onSuccess?: ((res: P) => void) | null, + onSuccess?: ((res: Awaited) => void) | null, onFailure?: ((err: Misskey.api.APIError) => void) | null, text?: string, ): T {