ソースを参照

fix(ts) rebuild to fix types after jsdoc changes

tags/v0.0.2
Jorge Oliveira 3年前
コミット
1d97a87ea1
1個のファイルの変更4行の追加4行の削除
  1. 4
    4
      types/auto/modules/e2ee/crypto-utils.d.ts

+ 4
- 4
types/auto/modules/e2ee/crypto-utils.d.ts ファイルの表示

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

読み込み中…
キャンセル
保存