Update packages/frontend/src/os.ts

Co-authored-by: anatawa12 <anatawa12@icloud.com>
This commit is contained in:
かっこかり 2024-06-03 22:01:04 +09:00 committed by GitHub
parent 21e5fe6870
commit b6704a84ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ type Unpromise<T> = T extends Promise<infer U> ? U : never;
export function promiseDialog<T extends Promise<any>>(
promise: T,
onSuccess?: ((res: Unpromise<T>) => void) | null,
onSuccess?: ((res: Awaited<T>) => void) | null,
onFailure?: ((err: Misskey.api.APIError) => void) | null,
text?: string,
): T {