mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Allow type for Express.Request.user (#27339)
This commit is contained in:
committed by
Wesley Wigham
parent
5ba0287527
commit
421d259b31
Vendored
+1
-4
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user