Allow type for Express.Request.user (#27339)

This commit is contained in:
Josh Cunningham
2018-07-20 17:40:38 -07:00
committed by Wesley Wigham
parent 5ba0287527
commit 421d259b31
+1 -4
View File
@@ -12,7 +12,7 @@ declare global {
namespace Express {
interface Request {
authInfo?: any;
user?: User;
user?: any;
// These declarations are merged into express's Request type
login(user: any, done: (err: any) => void): void;
@@ -26,9 +26,6 @@ declare global {
isAuthenticated(): boolean;
isUnauthenticated(): boolean;
}
interface User {
[_: string]: any;
}
}
}