refactor(Queue): allow undefined to be returned

This commit is contained in:
Andromeda 2021-09-29 12:41:09 +05:45 committed by GitHub
parent 276069d646
commit 9336ca08d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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