@voltiso/transform
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@voltiso/transform/inline

Type-alias-inlining using either:

  1. @inline JSDoc - to inline the type alias everywhere it's used (in .d.ts files)
  2. @inline comment before usage of any alias to attempt inlining it (in .d.ts files)

Config:

  • onInlineError: 'fail' - causes compiler to crash if type-inlining fails (usually symbols out of scope) - this applies only to the JSDoc inlining method (1.)

⚠️ Currently only checks if type names are in scope - but does not check if the types are equal!

@voltiso/transform/strip

Strip symbols such as asserts from production code.

Config:

  • modules: string[] - comment-out import declarations with given prefixes
  • symbols: string[] - comment-out instructions containing tokens (function calls, etc.)

Readme

Keywords

none

Package Sidebar

Install

npm i @voltiso/transform

Weekly Downloads

19

Version

4.0.0

License

MIT

Unpacked Size

193 kB

Total Files

268

Last publish

Collaborators

  • atablash