guard, info on never null, more general array rt

This commit is contained in:
dcode
2019-03-22 15:43:07 +01:00
parent c2ac1a0375
commit 7c0dc66849
69 changed files with 6066 additions and 4930 deletions

View File

@ -1171,12 +1171,15 @@ declare class Float64Array extends TypedArray<f64> {}
/** Class representing a sequence of values of type `T`. */
declare class Array<T> {
/** Tests if a value is an array. */
static isArray<U>(value: any): value is Array<any>;
/** Creates a new array with at least the specified capacity and length zero. */
static create<T>(capacity?: i32): Array<T>;
[key: number]: T;
/** Current length of the array. */
length: i32;
/** Constructs a new array. */
/** Constructs a new array. If length is greater than zero and T is a non-nullable reference, use `Array.create` instead.*/
constructor(capacity?: i32);
fill(value: T, start?: i32, end?: i32): this;