typescript-introspection
v0.9.6
Published
Framework for specifying introspect-able object types that can accurately initialize themselves, marshal themselves to/from JSON and other formats with little to no additional code.
Downloads
199
Readme
typescript-introspection
A typescript library for specifying runtime-introspectable datatype schemas.
By virtue of being introspectable, these datatype schemas are capable of:
- accurately initializing an instance of this datatype
- marshaling an instance of this datatype to/from JSON and string formats in a type-safe manner
- accuractly serializing the schema itself to/from JSON
... with little to no additional code.
Features
Datatypes may be defined recursively:
- native datatypes (for Javascript) such as
boolean
number
string
- sequences (equivalent to Arrays in Javascript)
- aggregates (equivalent to objects or maps in Javascript)