-
Notifications
You must be signed in to change notification settings - Fork 124
fix(typings): Add comment property #72
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
Conversation
Thanks @ffflorian. New to typescript, good to know that is needed. |
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.
thanks very much @ffflorian!
I think we should augment the decode return types with this though since encode won't do anything with the comments
maybe just & {comment?: string}
onto the decode return type declarations?
@patrickhulce good idea. But the question is: does |
Depends on your definition of "accept" :) It won't throw an error, but it won't do anything at all with them either. Their existence of |
Yes, that totally makes sense! I'll update my PR later :) |
@patrickhulce PR updated :) |
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.
oof, I'm so sorry @ffflorian but I had a typo in my original suggestion.
with these suggestions it looks great though! :)
After #71 was merged, the typings were not updated.
cc @sparticvs