fox1t / fastify-multer

Fastify plugin for handling multipart/form-data
MIT License
89 stars 14 forks source link

chore: support noUncheckedIndexedAccess #19

Open lynxtaa opened 3 years ago

lynxtaa commented 3 years ago

Trying to use this library and setting noUncheckedIndexedAccess to true in tsconfig.json will result in compilation errors.

I'm not sure why typescript keeps checking node_modules library when I have skipLibCheck: true so I've decided to make fastify-multer more compliant with a stricter typescript settings. This PR doesn't affect the functionality.

You can see docs for this option here https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#no-unchecked-indexed-access