Kaynağa Gözat

fix(ts) rebuild to fix types after jsdoc changes

dev1
Jorge Oliveira 2 yıl önce
ebeveyn
işleme
1d97a87ea1
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4
    4
      types/auto/modules/e2ee/crypto-utils.d.ts

+ 4
- 4
types/auto/modules/e2ee/crypto-utils.d.ts Dosyayı Görüntüle

@@ -12,14 +12,14 @@ export function deriveKeys(material: CryptoKey): Promise<{
12 12
  * Ratchets a key. See
13 13
  * https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.5.1
14 14
  * @param {CryptoKey} material - base key material
15
- * @returns {ArrayBuffer} - ratcheted key material
15
+ * @returns {Promise<ArrayBuffer>} - ratcheted key material
16 16
  */
17
-export function ratchet(material: CryptoKey): ArrayBuffer;
17
+export function ratchet(material: CryptoKey): Promise<ArrayBuffer>;
18 18
 /**
19 19
  * Converts a raw key into a WebCrypto key object with default options
20 20
  * suitable for our usage.
21 21
  * @param {ArrayBuffer} keyBytes - raw key
22 22
  * @param {Array} keyUsages - key usages, see importKey documentation
23
- * @returns {CryptoKey} - the WebCrypto key.
23
+ * @returns {Promise<CryptoKey>} - the WebCrypto key.
24 24
  */
25
-export function importKey(keyBytes: ArrayBuffer): CryptoKey;
25
+export function importKey(keyBytes: ArrayBuffer): Promise<CryptoKey>;

Loading…
İptal
Kaydet