fix(#687): shutdown callback arg is not optional

This commit is contained in:
Gareth Jones 2018-08-14 07:38:03 +10:00
parent 4d81c5a5d0
commit 8e4bfb5310

2
types/log4js.d.ts vendored
View File

@ -9,7 +9,7 @@ export interface Log4js {
addLayout(name: string, config: (a: any) => (logEvent: LoggingEvent) => string): void;
connectLogger(logger: Logger, options: { format?: Format; level?: string; nolog?: any; }): any; // express.Handler;
levels: Levels;
shutdown(cb?: (error: Error) => void): void | null;
shutdown(cb: (error: Error) => void): void | null;
}
export function getLogger(category?: string): Logger;