diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 7c741f027d..3dda5600a5 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -1758,7 +1758,7 @@ declare class Array { some(callbackfn: (value: T, index: i32, array: Array) => bool): bool; shift(): T; unshift(element: T): i32; - slice(from: i32, to?: i32): Array; + slice(from?: i32, to?: i32): Array; splice(start: i32, deleteCount?: i32): Array; sort(comparator?: (a: T, b: T) => i32): this; join(separator?: string): string; @@ -1792,7 +1792,7 @@ declare class StaticArray { every(callbackfn: (value: T, index: i32, array: StaticArray) => bool): bool; some(callbackfn: (value: T, index: i32, array: StaticArray) => bool): bool; concat(items: Array): Array; - slice(from: i32, to?: i32): Array; + slice(from?: i32, to?: i32): Array; sort(comparator?: (a: T, b: T) => i32): this; join(separator?: string): string; reverse(): this;