mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #14109 from kacepe/patch-1
Add user object to Express.Request
This commit is contained in:
Vendored
+8
-1
@@ -1,6 +1,6 @@
|
||||
// Type definitions for express-jwt
|
||||
// Project: https://www.npmjs.org/package/express-jwt
|
||||
// Definitions by: Wonshik Kim <https://github.com/wokim/>
|
||||
// Definitions by: Wonshik Kim <https://github.com/wokim/>, Kacper Polak <https://github.com/kacepe>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import express = require('express');
|
||||
@@ -37,3 +37,10 @@ declare namespace jwt {
|
||||
unless?: typeof unless;
|
||||
}
|
||||
}
|
||||
declare global {
|
||||
namespace Express {
|
||||
export interface Request {
|
||||
user?: any
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user