refactor(Queue): allow undefined to be returned
This commit is contained in:
parent
276069d646
commit
9336ca08d5
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class Queue<T = unknown> {
|
|||
private _filtersUpdate = false;
|
||||
#lastVolume = 0;
|
||||
#destroyed = false;
|
||||
public onBeforeCreateStream: (track: Track, source: TrackSource, queue: Queue) => Promise<Readable> = null;
|
||||
public onBeforeCreateStream: (track: Track, source: TrackSource, queue: Queue) => Promise<Readable|undefined> = null;
|
||||
|
||||
/**
|
||||
* Queue constructor
|
||||
|
|
Loading…
Reference in a new issue