swagger2dts Install npm i -g swagger2dts use in cli: swagger2dts http://api.doc.com/swagger.json types.d.ts use in node.js const swagger2dts = require('swagger2dts');