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;
|
private _filtersUpdate = false;
|
||||||
#lastVolume = 0;
|
#lastVolume = 0;
|
||||||
#destroyed = false;
|
#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
|
* Queue constructor
|
||||||
|
|
Loading…
Reference in a new issue