mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
sonic-boom.reopen file descriptor should be optional
This commit is contained in:
parent
e31b168ef1
commit
eeb04fa55a
2
types/sonic-boom/index.d.ts
vendored
2
types/sonic-boom/index.d.ts
vendored
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user