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: improve downloadUpdate typing #7099

Merged
merged 2 commits into from Aug 30, 2022
Merged

Conversation

alefoll
Copy link
Contributor

@alefoll alefoll commented Aug 29, 2022

According to the documentation, downloadUpdate() ⇒ Promise<any>.

According to the code comment, downloadUpdate() ⇒ Promise<string>.

According to the code, downloadUpdate() ⇒ doDownloadUpdate() ⇒ Promise<Array<string>>

This PR fix the typing to match with what the downloadUpdate code is doing.

Changelog

Change

  • downloadUpdate(cancellationToken: CancellationToken) ⇒ return from Promise<any> to Promise<Array<string>>

@changeset-bot
Copy link

changeset-bot bot commented Aug 29, 2022

🦋 Changeset detected

Latest commit: d472ec9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
electron-updater Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Aug 29, 2022

Deploy Preview for car-park-attendant-cleat-11576 ready!

Name Link
🔨 Latest commit d472ec9
🔍 Latest deploy log https://app.netlify.com/sites/car-park-attendant-cleat-11576/deploys/630c5edbf4deed0009e82945
😎 Deploy Preview https://deploy-preview-7099--car-park-attendant-cleat-11576.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@alefoll alefoll changed the title fix: improve downloadUpdate typing to match the doc fix: improve downloadUpdate typing Aug 29, 2022
@mmaietta mmaietta merged commit cd21b09 into electron-userland:master Aug 30, 2022
@github-actions github-actions bot mentioned this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants