fastify-multer icon indicating copy to clipboard operation
fastify-multer copied to clipboard

[Typescript]: throw an compilation error

Open sebas-digito opened this issue 7 months ago • 0 comments

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

sebas-digito avatar Jul 16 '24 16:07 sebas-digito