fix
This commit is contained in:
parent
2340ef005d
commit
19408f489e
|
@ -93,7 +93,7 @@ export const apiWithDialog = (<E extends keyof Misskey.Endpoints, P extends Miss
|
||||||
return promise;
|
return promise;
|
||||||
});
|
});
|
||||||
|
|
||||||
export function promiseDialog<T extends Promise<unknown>>(
|
export function promiseDialog<T extends Promise<any>>(
|
||||||
promise: T,
|
promise: T,
|
||||||
onSuccess?: ((res: Awaited<T>) => void) | null,
|
onSuccess?: ((res: Awaited<T>) => void) | null,
|
||||||
onFailure?: ((err: Misskey.api.APIError) => void) | null,
|
onFailure?: ((err: Misskey.api.APIError) => void) | null,
|
||||||
|
|
Loading…
Reference in New Issue