ts-runtime-type
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

description

Flexible runtime types, which make runtime types consistent with compile-time types, can extract type definitions from a definition and create instance objects, such as

let ss=obj({
  test:cvalue(Array<number>),
  hello:obj({
    test:value(()=>1)
  })
})

let sa:InstanceOfType<typeof ss>;
let tt=DefinitionUtils.CreateInstance(ss);

Readme

Keywords

none

Package Sidebar

Install

npm i ts-runtime-type

Weekly Downloads

4

Version

1.1.2

License

LGPL

Unpacked Size

19.5 kB

Total Files

8

Last publish

Collaborators

  • gmono