mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
auth: refactored sagas to use try-catch
This commit is contained in:
parent
7d2511e7e9
commit
c36494c3f9
22 changed files with 400 additions and 424 deletions
|
@ -192,7 +192,13 @@ export type INodeNotification = {
|
|||
|
||||
export type INotification = IMessageNotification | ICommentNotification;
|
||||
|
||||
export type Unwrap<T> = T extends Promise<infer U> ? U : T;
|
||||
export type Unwrap<T> = T extends (...args: any) => Promise<any>
|
||||
? T extends (...args: any) => Promise<infer U>
|
||||
? U
|
||||
: T
|
||||
: T extends () => Iterator<any, infer U, any>
|
||||
? U
|
||||
: any;
|
||||
|
||||
export interface IEmbed {
|
||||
provider: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue