Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Convert a new d.ts to one that works with older versions of Typescript
JavaScript
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Create nodejs.yml Jan 7, 2020
baselines/ts3.4 Private fields (#17) Feb 1, 2020
test Private fields (#17) Feb 1, 2020
.gitignore Add test files Jan 7, 2020
.prettierignore Downlevel export star (#8) Jan 15, 2020
.prettierrc Prettier print width 120 (#18) Jan 30, 2020
CODEOWNERS Add CODEOWNERS + update package.json Jan 6, 2020
LICENSE Create LICENSE Oct 16, 2019
README.md Add README Oct 16, 2019
index.js Private fields (#17) Feb 1, 2020
index.test.js
jest.config.js Prettier print width 120 (#18) Jan 30, 2020
package-lock.json Switch to typescript (#7) Jan 15, 2020
package.json 0.4.0 - Downlevel private fields Feb 3, 2020
tsconfig.json Initial commit Oct 16, 2019

README.md

Usage

  1. $ npm install downlevel-dts
  2. $ npx downlevel-dts . ts3.4
  3. To your package.json, add
"typesVersions": {
  "<=3.4.0-0": { "*": ["ts3.4/*"] }
}
  1. $ cp tsconfig.json ts3.4/tsconfig.json

These instructions are modified and simplified from the Definitely Typed.

You can’t perform that action at this time.