mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-17 14:40:25 +00:00
sonic-boom.reopen file descriptor should be optional
This commit is contained in:
Vendored
+1
-1
@@ -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.
|
||||
|
||||
@@ -7,6 +7,8 @@ sonic.flush();
|
||||
|
||||
sonic.flushSync();
|
||||
|
||||
sonic.reopen();
|
||||
|
||||
sonic.end();
|
||||
|
||||
sonic.destroy();
|
||||
|
||||
Reference in New Issue
Block a user