From: Ardis Lu Date: Fri, 15 Aug 2025 04:23:52 +0000 (-0700) Subject: Fix type annotation X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=0804c9ff8d2e6764842182cb94879713e48510dd;p=static-encrypt-passkey Fix type annotation `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 --- diff --git a/script.js b/script.js index ac6eb54..a0ad452 100644 --- 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} rand A high-entropy random value. - * @param {ArrayBuffer|ArrayBufferView} salt A cryptographic salt value. - * @param {ArrayBuffer|ArrayBufferView} info Additional contextual information. + * @param {ArrayBuffer|ArrayBufferView} rand A high-entropy random value. + * @param {ArrayBuffer|ArrayBufferView} salt A cryptographic salt value. + * @param {ArrayBuffer|ArrayBufferView} info Additional contextual information. * @returns {Promise} A `CryptoKey` that can be used for `"encrypt"` or `"decrypt"`. */ async function getKey(rand, salt, info) {