A generator for typescript from Swagger
npm install -D swagger-ts-gen
import { Generator } from "swagger-ts-gen";
const content = fs.readFileSync("path to swagger", "utf-8");
const generator = new CodeGenerator(JSON.parse(content), {
dist: path.resolve(process.cwd(), "dist")
});
generator.generate();