-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat: add typescript definition #153
base: master
Are you sure you want to change the base?
Conversation
this doesn't seem to implement the async iterator things. neither does |
index.d.ts
Outdated
entry(header: HeaderForPack, callback?: (error?: Error) => void): Sink | ||
entry( | ||
header: HeaderForPack, | ||
buffer: string | Buffer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buffer is optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. When buffer is not provided, the signature would be the one on line 23.
Thanks for reminding. Now the updated version includes the missing async iterator. @mafintosh Please check again :) |
Great work @alvis 👍 I was about to start defining the types myself as the |
@mafintosh let's do a review and let me know if there's anything missing 😎 |
any updates on this PR, any chance it'll be merged soon ? |
close #97