-
Notifications
You must be signed in to change notification settings - Fork 282
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
Add TypeScript definitions #611
Comments
@masaeedu thanks for opening an issue. After talking with @krishnasrinivas we think we'd want to include it in this repository. Would you be interested in taking this on, or would you defer to someone else? |
@brendanashworth Sure. I've been tackling this by converting all your You can follow progress in master...masaeedu:master (which builds correctly despite type errors), although perhaps it is a good idea to have a PR just to allow you to verify the correctness of the annotations I am adding. |
Looking fwd to your pr @masaeedu |
I'm actually finding some bugs as I go through this process: e.g. Line 663 in 8c0ca7c
new errors.isValidBucketNameError , which should probably be new errors.InvalidBucketNameError . You folks sure you don't just want to keep the converted TypeScript files?
|
Ah @masaeedu, good catch. There are perks to switching to a typed language 😄 I don't think we have any plans to switch the client to TypeScript right now though, I think we want to keep it in JS for now. Unfortunately our tests aren't very thorough so we miss some things like that. We'd love a PR that fixes it though ❤️ |
@masaeedu would you mind sending a PR and we can take your work from there? |
Guilty of not giving a good enough thought for TS. We'll check it. |
@harshavardhana Sorry for not responding earlier, wasn't using the project. I've opened a PR with whatever I had as you requested, hope that is of some minimal use. |
No problem @masaeedu - thanks for all the hard work. |
+1 Would love to see this completed |
PR about typings - #669. May be it will be useful. |
I think this can be closed, the types are available with @types. |
Thanks @masaeedu @barinbritva @dcharbonnier will close this @dcharbonnier no plans of rewriting typescript for now. https://reasonml.github.io/ looks interesting. |
yes, nice like transpiling golang to javascript or using coffeescript, can't wait for it |
Following on from #567, this issue tracks adding TypeScript definitions to describe the implemented JS API. This would involve creating a
.d.ts
file describing the public facing API and submitting it to the DefinitelyTyped repository or adding it to the minio-js module.The text was updated successfully, but these errors were encountered: