From: Ardis Lu Date: Mon, 25 May 2026 00:30:25 +0000 (-0700) Subject: Use standard ES types X-Git-Tag: v0.1.2~3 X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=703f514c1825edfd38b91b5a0ceaedbbe7376606;p=envpass Use standard ES types `BufferSource` is from web IDL (`lib.dom.d.ts`), which is not always imported. `ArrayBuffer` and `ArrayBufferView` are from the ES spec (`lib.es*.d.ts`) so they should always be available. --- diff --git a/test/getPrf.test.js b/test/getPrf.test.js index a8916e3..6d53926 100644 --- a/test/getPrf.test.js +++ b/test/getPrf.test.js @@ -22,7 +22,7 @@ function filterNullValues(obj) { * @typedef {Object} MakePostRequestOptions * @property {Record} [headers] Headers to set on the request. Set a property to * `null` to *delete* that header. - * @property {BufferSource|null} [prf] `prf` buffer to pass on the request body. + * @property {ArrayBuffer|ArrayBufferView|null} [prf] `prf` buffer to pass on the request body. */ /**