mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 09:21:35 +00:00
guard, info on never null, more general array rt
This commit is contained in:
5
std/assembly/index.d.ts
vendored
5
std/assembly/index.d.ts
vendored
@ -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;
|
||||
|
Reference in New Issue
Block a user