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

Feat: Support async functions by .addOptions() #1753

Merged
merged 3 commits into from
May 11, 2024
Merged

Conversation

RobinTail
Copy link
Owner

I read the documentation and realized that it does not make sense for .addOptions just to proxy the static data.
For that purpose one could just import the previously assigned const. That's it.
What does make sense is to accept an async function by that method.

Static option will be deprecated and removed in v19.

@RobinTail RobinTail added documentation Improvements or additions to documentation enhancement New feature or request labels May 11, 2024
Copy link

coveralls-official bot commented May 11, 2024

Coverage Status

coverage: 100.0%. remained the same
when pulling c2b7747 on async-add-options
into 6343ffc on master.

@RobinTail RobinTail marked this pull request as ready for review May 11, 2024 08:34
Copy link
Owner Author

@RobinTail RobinTail left a comment

Choose a reason for hiding this comment

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

nice!

@RobinTail RobinTail merged commit 27cb409 into master May 11, 2024
11 checks passed
@RobinTail RobinTail deleted the async-add-options branch May 11, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant