mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
add user to http-errors.d.ts
This commit is contained in:
@@ -4,12 +4,6 @@
|
||||
import * as createError from 'http-errors';
|
||||
import * as express from 'express';
|
||||
|
||||
declare namespace Express {
|
||||
export interface Request {
|
||||
user?: any
|
||||
}
|
||||
}
|
||||
|
||||
var app = express();
|
||||
|
||||
app.use(function (req, res, next) {
|
||||
|
||||
Vendored
+6
@@ -3,6 +3,12 @@
|
||||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace Express {
|
||||
export interface Request {
|
||||
user?: any
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'http-errors' {
|
||||
namespace createHttpError {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user