refactor, indexof, map/set overloads

This commit is contained in:
dcode
2019-06-17 16:17:27 +02:00
parent 8571df939f
commit f8f2565f60
23 changed files with 1091 additions and 645 deletions

View File

@ -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