-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bring over TS definition from definitelytyped #959
Conversation
This looks fantastic. Thank you very much. Great job! :) What do think about moving the And we can somehow extend the |
Define error parameter in consumer.close callbacks Fixes SOHU-Co#936
Adds encoding and keyEncoding options that are working with ConsumerGroupOptions.
Thanks for the recommendation @zoltan-nz. Copied over tests part from DT and added it to test script. |
@priithaamer wow, you were quick, very impressive. Thank you. :) Looks good to me. As I see you are an expert in this area. I'm just wondering how would you add the type definition of |
Ok I will try it. Haven’t used ProducerStream myself so not super familiar with the api. |
@priithaamer finally I figured it out. I just sent a PR to your branch. |
@zoltan-nz Nice, thanks! Just had one comment regarding tests. If you are not up to it, i can merge it anyway. @hyperlink Let me know if anything keeping from merging this. |
@priithaamer should we wait to merge until @zoltan-nz changes have been merged to your branch? And I have very limited knowledge of typescript and not sure how to verify this any tips would be helpful. |
I merged the change by @zoltan-nz Only way to verify is via test task in package.json. There is no good way i know of to test whether type definitions actually match the real code. The next best option is to write tests for the library in TS. Anyway, it is 99% copied over from |
@hyperlink @priithaamer Thank you! I try to extend our test coverage also... let see how is it going. :) |
Thank you for your contribution! |
Simply starting out by bringing over TypeScript definitions from DefinitelyTyped. Fixes to definition file will follow it this PR flies.
See #937