Skip to content

Commit eb5378c

Browse files
Merge pull request #905 from micalevisk/patch-1
feat: add type to `context` parameter on `IAuthGuard`
2 parents 9564beb + 28bee04 commit eb5378c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/auth.guard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export type IAuthGuard = CanActivate & {
2121
logIn<TRequest extends { logIn: Function } = any>(
2222
request: TRequest
2323
): Promise<void>;
24-
handleRequest<TUser = any>(err, user, info, context, status?): TUser;
25-
getAuthenticateOptions(context): IAuthModuleOptions | undefined;
24+
handleRequest<TUser = any>(err, user, info, context: ExecutionContext, status?): TUser;
25+
getAuthenticateOptions(context: ExecutionContext): IAuthModuleOptions | undefined;
2626
};
2727
export const AuthGuard: (type?: string | string[]) => Type<IAuthGuard> =
2828
memoize(createAuthGuard);

0 commit comments

Comments
 (0)