This tool generates TypeScript interfaces/Enums to all entities that you specified on swagger/openapi spec.
Note: this generates only interfaces and Enums
npm install --save-dev openapi-ts
npx openapi-ts -i ./src/api-docs.json -o ./gen.d.ts
const { generate } = require('openapi-ts');
generate(openAPISpecPath, outputPath);