@ayte/archetype.collection
v0.2.0
Published
Collection-related basic types (such as map with type values), part of @ayte/archetype
Downloads
13
Readme
Ayte / TypeScript / Archetype / Collection
This small package is designed for holding all collection-related types.
Installation
yarn add @ayte/archetype.collection
# - or -
npm install -S @ayte/archetype.collection
Structure
Currently there are only two types: IDictionary<T>
, which is basically
a map with values of type T
, and IDynamic
, which is just a type for
an object that contains properties of any type under string keys, i.e.
arrays are not assignable to this type. IDynamic
may be useful to
specify metadata types but restrict them to be maps.
Licensing
MIT / UPL-1.0
Ayte Labs, 2020