minio / minio-js

MinIO Client SDK for Javascript
https://docs.min.io/docs/javascript-client-quickstart-guide.html
Apache License 2.0
920 stars 271 forks source link

Fix type definition entry point #1315

Open heuuLZP opened 1 month ago

heuuLZP commented 1 month ago

Hello, I'm currently using version 8.0.1, but I still encountered this issue Cannot find type definition file for 'minio' yesterday.

The current entry point "types": "./types/esm/minio.d.ts" is incorrect, and the actual directory 'types' does not exist, as shown in the screenshot below.

image image

The correct address should be "types": "./dist/main/minio.d.ts"

heuuLZP commented 1 month ago

Does anyone pay attention to this PR? This may be a very minor problem, please confirm whether it needs to be dealt with @prakashsvmx

heuuLZP commented 4 weeks ago

I made some attempts but didn't achieve any results. I also don't know how to test. Or maybe we can think about it differently. What does the .type directory in package.json represent? Can you explain that? Why would someone write a non-existent directory name?

截屏2024-07-25 16 08 01

截屏2024-07-25 16 12 24

heuuLZP commented 4 weeks ago

But the directory ./dist/main/minio.d.ts exists relative to .type