cleanup types

This commit is contained in:
2025-02-03 10:29:33 +01:00
parent 4c61c067e6
commit 91693e55e1
7 changed files with 23 additions and 38 deletions

View File

@@ -1,7 +1,6 @@
import { type TypedArray } from '../utils/base.js'
import { getCrypto } from './crypto.js'
export async function getRandomBytes(bytes: number): Promise<TypedArray> {
export async function getRandomBytes(bytes: number): Promise<ArrayBufferLike> {
if (bytes <= 0) throw new Error('Invalid number of bytes')
const buffer = new Uint8Array(bytes)