Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Add type definition for typescript#71

Merged
vilyapilya merged 3 commits intologdna:masterfrom
tjoskar:feat/typescript-types
Jan 15, 2020
Merged

Add type definition for typescript#71
vilyapilya merged 3 commits intologdna:masterfrom
tjoskar:feat/typescript-types

Conversation

@tjoskar
Copy link
Copy Markdown
Contributor

@tjoskar tjoskar commented Sep 5, 2019

Added typescript types, as discussed here: #68

Questions:

  1. tags is mention under setup but it is not documented? But I guess it should be included in the types?

  2. What level does logdna support? According to the docs YourCustomLevel is supported so I guess any string is a valid level? But when I look at this line 8 different levels are supported? But only 6 of them are listed in the config. What should the type of level be?

  3. cleanUpSIGTERM and cleanUpSIGINT are listed in the docs but not in the code(?) should it be removed from the README file?

Comment thread types.d.ts Outdated
@smusali smusali requested review from dchai76 and smusali September 5, 2019 20:14
@smusali smusali requested review from andkon and removed request for dchai76 September 5, 2019 20:51
Copy link
Copy Markdown

@renarsvilnis renarsvilnis left a comment

Choose a reason for hiding this comment

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

Found that flushAll() and cleanUpAll() are missing optional callback functions.

Provided the fix, but found it a bit weird that if there is an error while flushing 🚽, the "error" is returned as a string instead of new Error() instance.

Comment thread types.d.ts Outdated
Comment thread types.d.ts
@tjoskar tjoskar force-pushed the feat/typescript-types branch from 5fef675 to 11b26f0 Compare October 4, 2019 08:01
@tjoskar
Copy link
Copy Markdown
Contributor Author

tjoskar commented Oct 4, 2019

Thanks @renarsvilnis and great points!

@SpainTrain
Copy link
Copy Markdown

Super excited for this PR. Is this likely to make it through? Any way to help? Thanks!

Comment thread types.d.ts Outdated
@vilyapilya vilyapilya merged commit 7e81cbb into logdna:master Jan 15, 2020
@tjoskar tjoskar deleted the feat/typescript-types branch January 17, 2020 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants