mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(dts): specify the underlying buffer type in more places (#30640)
This commit is contained in:
parent
e02e4c2042
commit
a3a904da14
6 changed files with 35 additions and 28 deletions
|
@ -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(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue