소스 검색

ref(e2ee) change jsdoc return to correct promise

the editor will no longer complain about superfluous await when calling these functions
dev1
Jorge Oliveira 3 년 전
부모
커밋
43ae27f990
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      modules/e2ee/crypto-utils.js

+ 2
- 2
modules/e2ee/crypto-utils.js 파일 보기

@@ -30,7 +30,7 @@ export async function deriveKeys(material) {
30 30
  * Ratchets a key. See
31 31
  * https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.5.1
32 32
  * @param {CryptoKey} material - base key material
33
- * @returns {ArrayBuffer} - ratcheted key material
33
+ * @returns {Promise<ArrayBuffer>} - ratcheted key material
34 34
  */
35 35
 export async function ratchet(material) {
36 36
     const textEncoder = new TextEncoder();
@@ -49,7 +49,7 @@ export async function ratchet(material) {
49 49
  * suitable for our usage.
50 50
  * @param {ArrayBuffer} keyBytes - raw key
51 51
  * @param {Array} keyUsages - key usages, see importKey documentation
52
- * @returns {CryptoKey} - the WebCrypto key.
52
+ * @returns {Promise<CryptoKey>} - the WebCrypto key.
53 53
  */
54 54
 export async function importKey(keyBytes) {
55 55
     // https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey

Loading…
취소
저장