From ef1ca953366b7decc3f553fc83afdd6cf72ae492 Mon Sep 17 00:00:00 2001 From: Tim Griesser Date: Tue, 11 Dec 2018 17:06:37 -0500 Subject: [PATCH] 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 --- types/express-jwt/index.d.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/types/express-jwt/index.d.ts b/types/express-jwt/index.d.ts index 1187f4fbca..d1029849cc 100644 --- a/types/express-jwt/index.d.ts +++ b/types/express-jwt/index.d.ts @@ -58,10 +58,3 @@ declare namespace jwt { constructor(code: ErrorCode, error: { message: string }); } } -declare global { - namespace Express { - export interface Request { - user?: any - } - } -}