fix(dts): specify the underlying buffer type in more places (#30640)

This commit is contained in:
ud2 2025-09-08 21:05:09 +08:00 committed by GitHub
parent e02e4c2042
commit a3a904da14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 35 additions and 28 deletions

View file

@ -4,7 +4,7 @@ import { assertEquals, assertRejects } from "./test_util.ts";
const prefix = "tests/testdata/image";
function generateNumberedData(n: number): Uint8ClampedArray {
function generateNumberedData(n: number): Uint8ClampedArray<ArrayBuffer> {
return new Uint8ClampedArray(
Array.from({ length: n }, (_, i) => [i + 1, 0, 0, 1]).flat(),
);