1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-26 02:25:58 +01:00

JSDoc doesn't recognize {Promise<void>[]}, use {Array.<>}.

This commit is contained in:
Antonin Décimo 2020-12-01 18:18:59 +01:00 committed by Juliusz Chroboczek
parent 59507c811f
commit 7d4dabe30f

View file

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