Update os.ts

This commit is contained in:
かっこかり 2024-06-03 22:01:39 +09:00 committed by GitHub
parent b6704a84ff
commit 9a27e429dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -89,8 +89,6 @@ export const apiWithDialog = (<E extends keyof Misskey.Endpoints = keyof Misskey
return promise;
});
type Unpromise<T> = T extends Promise<infer U> ? U : never;
export function promiseDialog<T extends Promise<any>>(
promise: T,
onSuccess?: ((res: Awaited<T>) => void) | null,