Pārlūkot izejas kodu

ref(e2ee) mark _decryptFrame function with correct jsdoc

the editor will no longer complain about superfluous await when calling
dev1
Jorge Oliveira 2 gadus atpakaļ
vecāks
revīzija
043149046b
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1
    1
      modules/e2ee/Context.js
  2. 1
    1
      types/auto/modules/e2ee/Context.d.ts

+ 1
- 1
modules/e2ee/Context.js Parādīt failu

@@ -204,7 +204,7 @@ export class Context {
204 204
      * @param {RTCEncodedVideoFrame|RTCEncodedAudioFrame} encodedFrame - Encoded video frame.
205 205
      * @param {number} keyIndex - the index of the decryption data in _cryptoKeyRing array.
206 206
      * @param {number} ratchetCount - the number of retries after ratcheting the key.
207
-     * @returns {RTCEncodedVideoFrame|RTCEncodedAudioFrame} - The decrypted frame.
207
+     * @returns {Promise<RTCEncodedVideoFrame|RTCEncodedAudioFrame>} - The decrypted frame.
208 208
      * @private
209 209
      */
210 210
     async _decryptFrame(

+ 1
- 1
types/auto/modules/e2ee/Context.d.ts Parādīt failu

@@ -64,7 +64,7 @@ export class Context {
64 64
      * @param {RTCEncodedVideoFrame|RTCEncodedAudioFrame} encodedFrame - Encoded video frame.
65 65
      * @param {number} keyIndex - the index of the decryption data in _cryptoKeyRing array.
66 66
      * @param {number} ratchetCount - the number of retries after ratcheting the key.
67
-     * @returns {RTCEncodedVideoFrame|RTCEncodedAudioFrame} - The decrypted frame.
67
+     * @returns {Promise<RTCEncodedVideoFrame|RTCEncodedAudioFrame>} - The decrypted frame.
68 68
      * @private
69 69
      */
70 70
     private _decryptFrame;

Notiek ielāde…
Atcelt
Saglabāt