Skip to content
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

Resolve type annotation changes required to enable composite in tsconfig #1565

Merged
merged 3 commits into from
Dec 15, 2020

Conversation

maxjeffos
Copy link
Contributor

@maxjeffos maxjeffos commented Dec 13, 2020

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Fixes some typing issues that are needed for the upcoming modular CLI init PR (#1564).

Any background context you want to provide?

For the modular CLI init / monorepo PR, we will be turning on "composite": true in the tsconfig which requires certain typing things be addressed beforehand.

Why not just do this as part of the aforementioned PR (#1564)? Because that PR is going to touch a lot of things and I would prefer to keep that PR as small as reasonably possible and since this is just about improving some typing (and refactoring analytics into TypeScript) I think it is best kept on its own.

What are the relevant tickets?

HAMMER-237

@maxjeffos maxjeffos force-pushed the spike/declaration-ready branch 5 times, most recently from 97cf4e3 to d09fbe4 Compare December 14, 2020 17:12
@maxjeffos maxjeffos changed the title draft: work out type annotation changes required to enable composite Resolve type annotation changes required to enable composite in tsconfig Dec 14, 2020
@maxjeffos maxjeffos marked this pull request as ready for review December 14, 2020 17:47
@maxjeffos maxjeffos requested review from a team as code owners December 14, 2020 17:47
@ghost ghost requested review from anthogez and orsagie December 14, 2020 17:47
@@ -82,7 +94,8 @@ function postAnalytics(data) {

const headers = {};
if (snyk.api) {
headers.authorization = 'token ' + snyk.api;
// headers.authorization = 'token ' + snyk.api;
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason for this comment to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, I'll remove it. Thanks!

Copy link
Contributor

@orsagie orsagie left a comment

Choose a reason for hiding this comment

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

small comment, but LG

@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2020

Expected release notes (by @maxjeffos)

fixes:
make analytics typescript (714ba35)
export ConfigStoreWithEnvironmentVariables (5c6d1b6)
add type annotation to request module (c25ab73)

  • I hereby acknowledge these release notes are 🥙 AWESOME 🥙

@maxjeffos maxjeffos merged commit 78d3708 into master Dec 15, 2020
@maxjeffos maxjeffos deleted the spike/declaration-ready branch December 15, 2020 15:45
@snyksec
Copy link

snyksec commented Dec 15, 2020

🎉 This PR is included in version 1.437.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants