JSDoc doesn't recognize {Promise<void>[]}, use {Array.<>}.
This commit is contained in:
committed by
Juliusz Chroboczek
parent
59507c811f
commit
7d4dabe30f
+1
-1
@@ -926,7 +926,7 @@ Stream.prototype.flushIceCandidates = async function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/** @type {Promise<void>[]} */
|
/** @type {Array.<Promise<void>>} */
|
||||||
let promises = [];
|
let promises = [];
|
||||||
c.remoteIceCandidates.forEach(candidate => {
|
c.remoteIceCandidates.forEach(candidate => {
|
||||||
promises.push(this.pc.addIceCandidate(candidate).catch(console.warn));
|
promises.push(this.pc.addIceCandidate(candidate).catch(console.warn));
|
||||||
|
|||||||
Reference in New Issue
Block a user