fastify-multer
fastify-multer copied to clipboard
[Typescript]: throw an compilation error
Description
Hi, we have been using fastify-multer
for a few days; we addressed the implementation required by the Product team. But when we tried to compile on my node application to Js(because we are using Typescript). We are facing this issue:
The inferred type of 'MulterInstance' can only be named concerning 'satisfy-multi/node_modules/falsify-plugin.' This is likely not portable. A type annotation is necessary.
And this one, too:
Property '_makePreHandler' of exported class expression may not be private or protected.
We tried to ignore the error and fix it, but it seemed a bit out of context.
please, any help would be great
We have: node: v21.7.3 typescript: 5.1.6 fastify: 4.26.2 fastify-multer: 2.0.3