@mannehedlund/ts-types-object-transformer
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

ts-types-object-transformer

ts-types-object-transformer is heavily inspired by ts-transformer-keys-2. It uses custom transformer to parse the keys in an 'interface' during the compile stage in TypeScript (using TypeScript Compiler API). It differs in the following ways:

  • Updated for TS version 4.
  • It will stop parsing an interface when it detects a circular reference.
  • It will include the readonly modifier.
  • It will include the names of all interfaces and types, even when unknown.
  • TODO: It will include [key: string]: T interface indexers.

Usage

Run tests

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i @mannehedlund/ts-types-object-transformer

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

22.9 kB

Total Files

5

Last publish

Collaborators

  • mannehedlund