chore: Update devdependencies

This commit is contained in:
Joachim Van Herwegen
2022-08-04 10:53:23 +02:00
parent 15e756efc1
commit deea184975
3 changed files with 2689 additions and 3997 deletions

View File

@@ -8,7 +8,8 @@ const guardedTimeout = Symbol('guardedTimeout');
// Private fields for guarded streams
class Guard {
private [guardedErrors]: Error[];
// Workaround for the fact that we don't initialize this variable as expected
declare private [guardedErrors]: Error[];
private [guardedTimeout]?: NodeJS.Timeout;
}
@@ -20,7 +21,7 @@ class Guard {
export type Guarded<T extends NodeJS.EventEmitter = NodeJS.EventEmitter> = T & Guard;
/**
* Determines whether the stream is guarded from emitting errors.
* Determines whether the stream is guarded against emitting errors.
*/
export function isGuarded<T extends NodeJS.EventEmitter>(stream: T): stream is Guarded<T> {
return typeof (stream as any)[guardedErrors] === 'object';