Is it possible to integrate the swagger-autogen module into a Typescript project? I have attempted multiple methods, but have been unsuccessful. The error message "Failed" keeps appearing when using a swagger.js file:
const swaggerAutogen = require("swagger-autogen")();
const options = {...}
const outputFile = './docs/swagger-output.json';
const endpointsFiles = ['./app.ts'];
swaggerAutogen(outputFile, endpointsFiles, options);
I even tried placing the file in the dist directory, but encountered the same issue. Apologies if this is a simple question or if I am overlooking a crucial detail.