Socket
Socket
Sign inDemoInstall

@voltiso/transform

Package Overview
Dependencies
8
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @voltiso/transform

Type-alias-inlining using either:


Version published
Maintainers
1
Created

Readme

Source

@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.)

FAQs

Last updated on 22 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc