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();