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: expose timeout typing #263

Merged
merged 2 commits into from
Aug 10, 2024
Merged

Conversation

nickfla1
Copy link
Contributor

@nickfla1 nickfla1 commented Aug 9, 2024

Updated avvio.Options typings to include the (optional) timeout field, documented here.

Checklist

Copy link
Member

@Eomm Eomm left a comment

Choose a reason for hiding this comment

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

Would you mind to add a test?

@nickfla1
Copy link
Contributor Author

nickfla1 commented Aug 9, 2024

Would you mind to add a test?

sure, I didn't notice type-related tests!

@nickfla1 nickfla1 force-pushed the fix/timeout-typing branch from c1dc647 to 18413b3 Compare August 9, 2024 12:58
@@ -386,7 +386,8 @@ import * as avvio from "../../";
const server = { hello: "world" };
const options = {
autostart: false,
expose: { after: "after", ready: "ready", use: "use", close: "close", onClose : "onClose" }
expose: { after: "after", ready: "ready", use: "use", close: "close", onClose : "onClose" },
timeout: 50000
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this should enough, and the right place, to test this change

@Eomm Eomm merged commit 0fd868d into fastify:master Aug 10, 2024
11 checks passed
Eomm pushed a commit that referenced this pull request Aug 10, 2024
Eomm added a commit that referenced this pull request Aug 10, 2024
Co-authored-by: Flavio Lanternini Strippoli <lanterniniflavio@gmail.com>
@nickfla1 nickfla1 deleted the fix/timeout-typing branch August 10, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants