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:
Tim Griesser
2018-12-11 17:06:37 -05:00
committed by GitHub
parent 10739f8bd4
commit ef1ca95336
-7
View File
@@ -58,10 +58,3 @@ declare namespace jwt {
constructor(code: ErrorCode, error: { message: string });
}
}
declare global {
namespace Express {
export interface Request {
user?: any
}
}
}