Skip to content

Commit 42831a8

Browse files
authored
fix: fix type of slice in definitions (#2371)
1 parent 2d18059 commit 42831a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: std/assembly/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ declare class Array<T> {
17581758
some(callbackfn: (value: T, index: i32, array: Array<T>) => bool): bool;
17591759
shift(): T;
17601760
unshift(element: T): i32;
1761-
slice(from: i32, to?: i32): Array<T>;
1761+
slice(from?: i32, to?: i32): Array<T>;
17621762
splice(start: i32, deleteCount?: i32): Array<T>;
17631763
sort(comparator?: (a: T, b: T) => i32): this;
17641764
join(separator?: string): string;
@@ -1792,7 +1792,7 @@ declare class StaticArray<T> {
17921792
every(callbackfn: (value: T, index: i32, array: StaticArray<T>) => bool): bool;
17931793
some(callbackfn: (value: T, index: i32, array: StaticArray<T>) => bool): bool;
17941794
concat(items: Array<T>): Array<T>;
1795-
slice(from: i32, to?: i32): Array<T>;
1795+
slice(from?: i32, to?: i32): Array<T>;
17961796
sort(comparator?: (a: T, b: T) => i32): this;
17971797
join(separator?: string): string;
17981798
reverse(): this;

0 commit comments

Comments
 (0)