Update packages/frontend/src/os.ts
Co-authored-by: anatawa12 <anatawa12@icloud.com>
This commit is contained in:
parent
21e5fe6870
commit
b6704a84ff
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue