Type Alias Many<Titem, TidxKey>

Many<Titem, TidxKey>: ManySystem<Titem, TidxKey> | Class<any> | Record<ObjectPropTypes, Titem>

Supposedly matches any type that can hold many items, including system types like Array, Set, Map, Iterator, Generator, arguments etc.

WARNING: Unfortunately, it also matches all Single object types like Date, Error, Number, Promise etc, which is wrong. On the other hand, Single works fine, because it doesn't match Many types.

@todo(333): NOT WORKING PROPERLY YET! Need to find a way to exclude Boxed singles (eg String, Date etc) from Many.

We can use IsMany that excludes these known Single types ;-)

Type Parameters

  • Titem
  • TidxKey