From 11d4c2243a404297468c83e5e38afc497d4a1423 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Tue, 26 Jul 2022 15:42:34 +0800 Subject: [PATCH 1/2] type: corrected AppenderModule interface --- types/log4js.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/log4js.d.ts b/types/log4js.d.ts index bd3f343b..cb22ffa2 100644 --- a/types/log4js.d.ts +++ b/types/log4js.d.ts @@ -335,7 +335,12 @@ export interface Appenders { } export interface AppenderModule { - configure: (config: Config, layouts: LayoutsParam) => AppenderFunction; + configure: ( + config?: Config, + layouts?: LayoutsParam, + findAppender?: () => AppenderFunction, + levels?: Levels + ) => AppenderFunction; } export type AppenderFunction = (loggingEvent: LoggingEvent) => void; From 387e7123cb77ba28215bc0c5b4a09d2d63075017 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Tue, 26 Jul 2022 15:43:09 +0800 Subject: [PATCH 2/2] type: corrected Recording interface --- types/log4js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/log4js.d.ts b/types/log4js.d.ts index cb22ffa2..7606fcb7 100644 --- a/types/log4js.d.ts +++ b/types/log4js.d.ts @@ -400,7 +400,7 @@ export interface Configuration { } export interface Recording { - configure(loggingEvent: LoggingEvent): void; + configure(): AppenderFunction; replay(): LoggingEvent[]; playback(): LoggingEvent[]; reset(): void;