ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
128 stars 41 forks source link

Typescript issue in Adonis v6 #43

Closed zecar closed 8 months ago

zecar commented 8 months ago

I just installed and copied the code to routes file. I get this error

image

TS7016: Could not find a declaration file for module adonis-autoswagger.
/Users/ionutcapraru/work/github/ep2-api/node_modules/adonis-autoswagger/dist/index.jsimplicitly has an any type.
Try npm i --save-dev @types/adonis-autoswagger if it exists or add a new declaration (.d.ts) file containing declare module 'adonis-autoswagger';
ad-on-is commented 8 months ago

Ahh.., damn I accidentally removed a line from tsconfig.json..

Thx! Fixed in 2.6.0