]> git.ardis.lu - static-encrypt-passkey/commitdiff
Fix type annotation
authorArdis Lu <ardisglu@gmail.com>
Fri, 15 Aug 2025 04:23:52 +0000 (21:23 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 15 Aug 2025 04:23:52 +0000 (21:23 -0700)
`ArrayBufferLike` annotations in `lib.d.ts` were updated in TypeScript 5.9, see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-9.html

script.js

index ac6eb54d9cffea6a90f95e2b4ad7fb2b55ea28fc..a0ad4520e206b2676f773e3b0fe8ca4d75182c4f 100644 (file)
--- a/script.js
+++ b/script.js
@@ -38,9 +38,9 @@ async function getPrf() {
 
 /**
  * Create a `CryptoKey` from a high-entropy random value using the HKDF algorithm.
- * @param {ArrayBuffer|ArrayBufferView<ArrayBufferLike>} rand A high-entropy random value.
- * @param {ArrayBuffer|ArrayBufferView<ArrayBufferLike>} salt A cryptographic salt value.
- * @param {ArrayBuffer|ArrayBufferView<ArrayBufferLike>} info Additional contextual information.
+ * @param {ArrayBuffer|ArrayBufferView<ArrayBuffer>} rand A high-entropy random value.
+ * @param {ArrayBuffer|ArrayBufferView<ArrayBuffer>} salt A cryptographic salt value.
+ * @param {ArrayBuffer|ArrayBufferView<ArrayBuffer>} info Additional contextual information.
  * @returns {Promise<CryptoKey>} A `CryptoKey` that can be used for `"encrypt"` or `"decrypt"`.
  */
 async function getKey(rand, salt, info) {
This page took 0.037681 seconds and 4 git commands to generate.