Skip to content

Commit

Permalink
fix(platform-log-middleware): fix ambient file declaration to have lo…
Browse files Browse the repository at this point in the history
…gger options from PlatformLogMiddleware

Closes: #2592
  • Loading branch information
Romakita committed Feb 17, 2024
1 parent 3bb479a commit a5bec00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/di/src/common/interfaces/DILoggerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ export interface DILoggerOptions {

declare global {
namespace TsED {
interface LoggerConfiguration extends DILoggerOptions {}

interface Configuration extends Record<string, any> {
logger?: DILoggerOptions;
logger?: LoggerConfiguration;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import {Context} from "@tsed/platform-params";

export type LoggerRequestFields = ("reqId" | "method" | "url" | "headers" | "body" | "query" | "params" | "duration" | string)[];

export interface PlatformLogMiddlewareSettings {
Expand Down

0 comments on commit a5bec00

Please sign in to comment.