Update os.ts
This commit is contained in:
parent
b6704a84ff
commit
9a27e429dd
|
@ -89,8 +89,6 @@ export const apiWithDialog = (<E extends keyof Misskey.Endpoints = keyof Misskey
|
||||||
return promise;
|
return promise;
|
||||||
});
|
});
|
||||||
|
|
||||||
type Unpromise<T> = T extends Promise<infer U> ? U : never;
|
|
||||||
|
|
||||||
export function promiseDialog<T extends Promise<any>>(
|
export function promiseDialog<T extends Promise<any>>(
|
||||||
promise: T,
|
promise: T,
|
||||||
onSuccess?: ((res: Awaited<T>) => void) | null,
|
onSuccess?: ((res: Awaited<T>) => void) | null,
|
||||||
|
|
Loading…
Reference in New Issue