mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 18:51:43 +00:00
refactor, indexof, map/set overloads
This commit is contained in:
4
std/portable/index.d.ts
vendored
4
std/portable/index.d.ts
vendored
@ -28,7 +28,9 @@ declare type usize = number;
|
||||
declare type f32 = number;
|
||||
declare type f64 = number;
|
||||
|
||||
/** Special type evaluating the value type of a collection. */
|
||||
/** Special type evaluating the indexed access index type. */
|
||||
declare type indexof<T extends unknown[]> = keyof T;
|
||||
/** Special type evaluating the indexed access value type. */
|
||||
declare type valueof<T extends unknown[]> = T[0];
|
||||
|
||||
// Compiler hints
|
||||
|
Reference in New Issue
Block a user