Add Array#concat and add a return type for Array#push (#214)

This commit is contained in:
LiaoPeng
2018-10-30 22:07:53 +08:00
committed by Daniel Wirtz
parent c11605d10c
commit d864977a1a
6 changed files with 2895 additions and 1718 deletions

View File

@ -444,7 +444,8 @@ declare class Array<T> {
includes(searchElement: T, fromIndex?: i32): bool;
indexOf(searchElement: T, fromIndex?: i32): i32;
lastIndexOf(searchElement: T, fromIndex?: i32): i32;
push(element: T): void;
push(element: T): i32;
concat(items: T[]): T[];
pop(): T;
forEach(callbackfn: (value: T, index: i32, array: Array<T>) => void): void;
map<U>(callbackfn: (value: T, index: i32, array: Array<T>) => U): Array<U>;