]> git.ardis.lu - envpass/commitdiff
Use standard ES types
authorArdis Lu <ardisglu@gmail.com>
Mon, 25 May 2026 00:30:25 +0000 (17:30 -0700)
committerArdis Lu <ardisglu@gmail.com>
Mon, 25 May 2026 00:30:25 +0000 (17:30 -0700)
`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.

test/getPrf.test.js

index a8916e3f87b3fd535cca85cd5667c80e57ee9b31..6d539263bdfac1ab75bf7943ef97d2abee33c89b 100644 (file)
@@ -22,7 +22,7 @@ function filterNullValues(obj) {
  * @typedef {Object} MakePostRequestOptions
  * @property {Record<string,string|null>} [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<ArrayBuffer>|null} [prf] `prf` buffer to pass on the request body.
  */
 
 /**
This page took 0.039523 seconds and 4 git commands to generate.