From eeb04fa55a9a631354ffd4f78ddc69dd364ceeb6 Mon Sep 17 00:00:00 2001 From: Alexandre Ferrando Date: Mon, 5 Nov 2018 11:44:10 +0100 Subject: [PATCH] sonic-boom.reopen file descriptor should be optional --- types/sonic-boom/index.d.ts | 2 +- types/sonic-boom/sonic-boom-tests.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/sonic-boom/index.d.ts b/types/sonic-boom/index.d.ts index 292770bd0d..0ae54bc997 100644 --- a/types/sonic-boom/index.d.ts +++ b/types/sonic-boom/index.d.ts @@ -31,7 +31,7 @@ declare class SonicBoom extends EventEmitter { /** * Reopen the file in place, useful for log rotation. */ - reopen(file: string): void; + reopen(fileDescriptor?: string | number): void; /** * Flushes the buffered data synchronously. This is a costly operation. diff --git a/types/sonic-boom/sonic-boom-tests.ts b/types/sonic-boom/sonic-boom-tests.ts index a3beb06d0c..4ed8e1bee5 100644 --- a/types/sonic-boom/sonic-boom-tests.ts +++ b/types/sonic-boom/sonic-boom-tests.ts @@ -7,6 +7,8 @@ sonic.flush(); sonic.flushSync(); +sonic.reopen(); + sonic.end(); sonic.destroy();