-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect return type for TypedClient.getBucketVersioning()
#1296
Comments
Yes. We will update it. Thank you for the feedback. |
Thanks @prakashsvmx for the fix. But the new typing still doesn't address the possible return value |
Opened #1303 to track your question. |
The function here definitely returns something, so its return type shouldn't be
Promise<void>
.minio-js/src/internal/client.ts
Line 2095 in 8633968
Here is my suggestion. I didn't look very closely so I might have missed some fields.
Note that it currently returns an empty string when versioning has never been toggled on. It might be a good idea to return
{Status: "Disabled"}
instead.The text was updated successfully, but these errors were encountered: