mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-23 19:51:47 +00:00
Add built-in valueof type
This commit is contained in:
3
std/portable/index.d.ts
vendored
3
std/portable/index.d.ts
vendored
@ -28,6 +28,9 @@ declare type usize = number;
|
||||
declare type f32 = number;
|
||||
declare type f64 = number;
|
||||
|
||||
/** Special type evaluating the value type of a collection. */
|
||||
declare type valueof<T extends unknown[]> = T[0];
|
||||
|
||||
// Compiler hints
|
||||
|
||||
/** Compiler target. 0 = JS, 1 = WASM32, 2 = WASM64. */
|
||||
|
Reference in New Issue
Block a user