Browse Source

fix(ts) rebuild to fix types after jsdoc changes

dev1
Jorge Oliveira 3 years ago
parent
commit
1d97a87ea1
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      types/auto/modules/e2ee/crypto-utils.d.ts

+ 4
- 4
types/auto/modules/e2ee/crypto-utils.d.ts View File

12
  * Ratchets a key. See
12
  * Ratchets a key. See
13
  * https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.5.1
13
  * https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.5.1
14
  * @param {CryptoKey} material - base key material
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
  * Converts a raw key into a WebCrypto key object with default options
19
  * Converts a raw key into a WebCrypto key object with default options
20
  * suitable for our usage.
20
  * suitable for our usage.
21
  * @param {ArrayBuffer} keyBytes - raw key
21
  * @param {ArrayBuffer} keyBytes - raw key
22
  * @param {Array} keyUsages - key usages, see importKey documentation
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…
Cancel
Save