From 4399647c54c15abfbf7dc672d1f8042bd5a741ff Mon Sep 17 00:00:00 2001 From: yjhmelody <465402634@qq.com> Date: Tue, 20 Apr 2021 15:35:33 +0800 Subject: [PATCH] fix: new Array(length) rather than new Array(capacity) --- std/assembly/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index af2c7f4181..02d2e5b14a 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -1578,8 +1578,7 @@ declare class Array { /** Current length of the array. */ length: i32; /** Constructs a new array. */ - constructor(capacity?: i32); - + constructor(length?: i32); at(index: i32): T; fill(value: T, start?: i32, end?: i32): this; every(callbackfn: (element: T, index: i32, array?: Array) => bool): bool;