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 {