1.0.3 • Published 10 months ago

@mannehedlund/ts-types-object-transformer v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

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
1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago