Skip to content

Commit

Permalink
Fix express type defenitions
Browse files Browse the repository at this point in the history
GH-PR: #26
  • Loading branch information
dmaretskyi authored and tellnes committed Dec 8, 2020
1 parent 29de426 commit 42fe680
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ declare namespace bunyanMiddleware {
}


declare module 'express' {
export interface Request {
log: Logger
reqId: string
}
export interface Response {
log: Logger
declare global {
namespace Express {
export interface Request {
log: Logger
reqId: string
}
export interface Response {
log: Logger
}
}
}

0 comments on commit 42fe680

Please sign in to comment.