Skip to content

Commit

Permalink
feat: typing context parameter on IAuthGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
micalevisk authored May 21, 2022
1 parent bb452fc commit 28bee04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export type IAuthGuard = CanActivate & {
logIn<TRequest extends { logIn: Function } = any>(
request: TRequest
): Promise<void>;
handleRequest<TUser = any>(err, user, info, context, status?): TUser;
getAuthenticateOptions(context): IAuthModuleOptions | undefined;
handleRequest<TUser = any>(err, user, info, context: ExecutionContext, status?): TUser;
getAuthenticateOptions(context: ExecutionContext): IAuthModuleOptions | undefined;
};
export const AuthGuard: (type?: string | string[]) => Type<IAuthGuard> =
memoize(createAuthGuard);
Expand Down

0 comments on commit 28bee04

Please sign in to comment.