affanshahid / multer-storage-cloudinary

A Cloudinary multer storage engine
MIT License
104 stars 18 forks source link

Fix/type known keys #52

Open devfresher opened 8 months ago

devfresher commented 8 months ago

Issue: The KnownKeys type used in the PickedUploadApiOptions type definition might not correctly extract the known keys from UploadApiOptions. This could result in an empty object when using Pick to select certain properties from UploadApiOptions.

Solution: To address this issue, consider using a different approach to define the KnownKeys type. Update the KnownKeys type definition to use a conditional type that checks if the key is assignable to string or number: