]> git.ardis.lu - envpass/commit
Narrow `ArrayBufferView` to `Uint8Array`
authorArdis Lu <ardisglu@gmail.com>
Sun, 31 May 2026 06:07:37 +0000 (23:07 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 31 May 2026 06:07:37 +0000 (23:07 -0700)
commitfbd137cf836e51a395c352a2992aea73bd1d101f
tree978e207dce34953117c77f9096f66cb565edd328
parent728a039163810b56e1e8ec029def5f233b5116cd
Narrow `ArrayBufferView` to `Uint8Array`

`ArrayBufferView` includes `DataView` which causes a type error when passed to the Web Crypto API. Although any typed array would work here, it is most common to use `Uint8Array` for this kind of data, so it should not cause any problems narrowing the required type.
src/crypto.js
This page took 0.053589 seconds and 4 git commands to generate.