From 11d4c2243a404297468c83e5e38afc497d4a1423 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Tue, 26 Jul 2022 15:42:34 +0800 Subject: [PATCH] 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 bd3f343..cb22ffa 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;