-
Notifications
You must be signed in to change notification settings - Fork 14
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
Create type definition #19
base: main
Are you sure you want to change the base?
Conversation
@smusali if you have time to review |
Just a little ping to get some feedback, thanks! |
Another ping just to make sure I am not forgotten |
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.
@smusali Let me know if you prefer that I copy the props from the parent, otherwsie feel free to merge. |
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.
Let's have a complete conversion and then merge!
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.
Dear @smusali, I hope you will the changes to you liking. Please see my comment above concerning a potential bug with defaults. I am also starting to consider that maybe the options interface should not inherit from the parents since it's particular mix of both (the case of |
That's fine! I'll have a couple of requests as well |
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.
Well, in order to keep consistency, I'm trying to compare it with our Node.js Code Library
to which the types have already been added and most probably, after publishing the new version of logdna-winston
including this addition, I'll do the same for our Bunyan Support
as well. So, a few things I wanna request:
- Please, specify the types inside
package.json
similar to this - This captures
Logger
module's methods as well; so, here we can seeLogDNATransport
has alog
method but it looks like it's inherited fromTransport
and it's already defined here; so, there is no need to capture it separately, right? Can you confirm it, please?
Thanks!
interface TransportOptions | ||
extends Transport.TransportStreamOptions, | ||
ConstructorOptions { | ||
/** The LogDNA API key. */ |
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.
it looks like there is some kinda indentation issue here - can you fix?
@smusali I think it would be best if you take over, I do not have the bandwidth to go back and forth over this issue anymore. Thanks! |
@smusali can you please merge this? |
Fixes #18