We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c30c5e commit e8dfcf1Copy full SHA for e8dfcf1
src/CurrentUserChecker.ts
@@ -3,4 +3,4 @@ import { Action } from './Action';
3
/**
4
* Special function used to get currently authorized user.
5
*/
6
-export type CurrentUserChecker = (action: Action) => Promise<any> | any;
+export type CurrentUserChecker = <User = any>(action: Action) => Promise<User | null> | User | null;
src/index.ts
@@ -89,6 +89,8 @@ export * from './CustomParameterDecorator';
89
export * from './RoleChecker';
90
export * from './Action';
91
export * from './InterceptorInterface';
92
+export * from './CurrentUserChecker';
93
+export * from './AuthorizationChecker';
94
95
export * from './driver/BaseDriver';
96
export * from './driver/express/ExpressDriver';
0 commit comments