typescript-introspection
TypeScript icon, indicating that this package has built-in type declarations

0.9.30 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i typescript-introspection

Weekly Downloads

4

Version

0.9.30

License

ISC

Unpacked Size

187 kB

Total Files

65

Last publish

Collaborators

  • pitaman71