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

Fix/typescript promise issues #307

Merged
merged 2 commits into from
Nov 20, 2020
Merged

Conversation

agatakrajewska
Copy link
Contributor

@agatakrajewska agatakrajewska commented Nov 20, 2020

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

What does this PR do?

There has been typescript changes, where the value is required in the resolve callback for a new Promise. When resolve is called without arguments, we need to specify type void on the new Promise. More information: microsoft/TypeScript#39817

Also we're pinning typescript and typescript types to specific versions to avoid similar issues in the future.

@agatakrajewska agatakrajewska requested a review from a team as a code owner November 20, 2020 11:23
lib/stream-utils.ts Outdated Show resolved Hide resolved
There has been typescript changes, where the value is required in the resolve callback for a new Promise. When resolve is called without arguments, we need to specify type void on the new Promise. More information: microsoft/TypeScript#39817
@agatakrajewska agatakrajewska force-pushed the fix/typescript-promise-issues branch from 48ef968 to 249936b Compare November 20, 2020 11:34
@github-actions
Copy link

github-actions bot commented Nov 20, 2020

Expected release notes (by @agatakrajewska)

features:
Pin ts & ts types packages (9600019)

fixes:
Specify promise type to match resolve() call (249936b)

  • I hereby acknowledge these release notes are 🥙 AWESOME 🥙

@agatakrajewska agatakrajewska self-assigned this Nov 20, 2020
@agatakrajewska agatakrajewska merged commit a974797 into master Nov 20, 2020
@agatakrajewska agatakrajewska deleted the fix/typescript-promise-issues branch November 20, 2020 11:47
@snyksec
Copy link

snyksec commented Nov 20, 2020

🎉 This PR is included in version 4.10.0 🎉

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
Development

Successfully merging this pull request may close these issues.

3 participants