Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dts-downlevel

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dts-downlevel

Remove TS 2.1 syntax from .d.ts files for backwards compatibility with TS 1.8

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dts-downlevel

Remove TS 2.1 syntax from .d.ts files for backwards compatibility with TS 1.8

This utility modifies .d.ts files generated using TS 2.1. It removes any new syntax that is incompatible with TS 1.8.

This allows a library to be develped using TS 2.1, but consumed by an app that uses TS 1.8.

Get

npm i --save-dev dts-downlevel

Use

Command line use:

dts-downlevel [paths]

If [paths] is omitted, all .d.ts files in the current directory and below are modified.

Example

dts-downlevel 'dist/**/*.d.ts' 'build/**/*.d.ts'

Rules

To see the rules that this utility currently supports, view the source code: https://github.com/christopherthielen/dts-downlevel/blob/master/rules.js

FAQs

Package last updated on 28 May 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc