mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Remove global Express.Request.user declaration
This should be defined by the consumer based on what they know the type might be, rather than by the type definitions
This commit is contained in:
Vendored
-7
@@ -58,10 +58,3 @@ declare namespace jwt {
|
||||
constructor(code: ErrorCode, error: { message: string });
|
||||
}
|
||||
}
|
||||
declare global {
|
||||
namespace Express {
|
||||
export interface Request {
|
||||
user?: any
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user