Skip to content

Create type definition#19

Open
Sytten wants to merge 5 commits into
logdna:mainfrom
efugulin:master
Open

Create type definition#19
Sytten wants to merge 5 commits into
logdna:mainfrom
efugulin:master

Conversation

@Sytten

@Sytten Sytten commented May 6, 2020

Copy link
Copy Markdown

Fixes #18

@Sytten

Sytten commented May 6, 2020

Copy link
Copy Markdown
Author

@smusali if you have time to review

IgorHalfeld
IgorHalfeld previously approved these changes May 11, 2020
@smusali smusali requested review from jakedipity and smusali May 11, 2020 15:45
@smusali smusali added bug Something isn't working enhancement New feature or request labels May 11, 2020
@Sytten

Sytten commented May 18, 2020

Copy link
Copy Markdown
Author

Just a little ping to get some feedback, thanks!

@Sytten

Sytten commented May 24, 2020

Copy link
Copy Markdown
Author

Another ping just to make sure I am not forgotten
@smusali @jakedipity

@smusali smusali left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, @Sytten, for your work! We appreciate it a lot! And sorry for the late response since we have been having some other high prioritized tasks!

I have added some comments/requests to change for keeping it consistent with this.

Comment thread index.d.ts
Comment thread index.d.ts Outdated
Comment thread index.d.ts Outdated
@Sytten

Sytten commented May 25, 2020

Copy link
Copy Markdown
Author

@smusali Let me know if you prefer that I copy the props from the parent, otherwsie feel free to merge.

@smusali smusali left a comment

Copy link
Copy Markdown
Contributor

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!

Comment thread index.d.ts Outdated
@smusali smusali self-requested a review June 6, 2020 19:10

@smusali smusali left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @Sytten, what we would like to see is the consistency with this.

@Sytten Sytten requested a review from smusali June 6, 2020 23:33
@Sytten

Sytten commented Jun 6, 2020

Copy link
Copy Markdown
Author

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 level is problematic for example).

@smusali

smusali commented Jun 10, 2020

Copy link
Copy Markdown
Contributor

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 level is problematic for example).

That's fine! I'll have a couple of requests as well

@smusali smusali left a comment

Copy link
Copy Markdown
Contributor

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 see LogDNATransport has a log method but it looks like it's inherited from Transport and it's already defined here; so, there is no need to capture it separately, right? Can you confirm it, please?

Thanks!

Comment thread index.d.ts
interface TransportOptions
extends Transport.TransportStreamOptions,
ConstructorOptions {
/** The LogDNA API key. */

Copy link
Copy Markdown
Contributor

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?

@Sytten

Sytten commented Jul 6, 2020

Copy link
Copy Markdown
Author

@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 smusali self-requested a review July 16, 2021 12:06
@TrejGun

TrejGun commented Jul 28, 2021

Copy link
Copy Markdown

@smusali can you please merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add types

4 participants