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 {