Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Temmmmmo committed Jul 28, 2023
1 parent 2b0f8e1 commit 9407ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/controllers/auth/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function checkToken<Resp>(method: (...args: any[]) => Resp) {
};
}

type Func<Resp> = (...args: any[]) => Resp | undefined | Awaited<ReturnType<any>>;
type Func<Resp> = (...args: any[]) => Resp | undefined | any;
// type AsyncFunc<Resp> = (...args: any[]) => Promise<Resp | undefined>;
type Decorator<Resp = undefined> = (method: Func<Resp>, ...args: any[]) => Func<Resp | undefined>;
type DecoratorResp<D extends Decorator> = D extends Decorator<R> ? R : never;
Expand Down

0 comments on commit 9407ae8

Please sign in to comment.