$ npm install downlevel-dts
$ npx downlevel-dts . ts3.4
- To your package.json, add
"typesVersions": {
"<=3.4.0-0": { "*": ["ts3.4/*"] }
}
$ cp tsconfig.json ts3.4/tsconfig.json
These instructions are modified and simplified from the Definitely Typed.