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: remove Promise<...> type from OnConfigureHandlerReturn [EXT-3082] #992

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

andipaetzold
Copy link
Contributor

Small change to the OnConfigureHandlerReturn type. That way you can now write code like

const onConfigure: async (): OnConfigureHandlerReturn => {
...
}

that was previously not possible because of

Type 'OnConfigureHandlerReturn' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.

Also it was previously not valid to return Promise<false>

@andipaetzold andipaetzold requested a review from a team as a code owner September 27, 2021 16:25
@andipaetzold andipaetzold self-assigned this Sep 27, 2021
@andipaetzold andipaetzold merged commit 19bbfbb into canary Sep 28, 2021
@andipaetzold andipaetzold deleted the on-configure-handler-type branch September 28, 2021 12:03
ghost pushed a commit that referenced this pull request Sep 28, 2021
# [4.0.0-alpha.35](v4.0.0-alpha.34...v4.0.0-alpha.35) (2021-09-28)

### Bug Fixes

* remove Promise<...> type from OnConfigureHandlerReturn ([#992](#992)) ([19bbfbb](19bbfbb))
@ghost
Copy link

ghost commented Sep 28, 2021

🎉 This PR is included in version 4.0.0-alpha.35 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released on @canary label Sep 28, 2021
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.

3 participants