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(cloudflare-module): use correct types for email and queue events/hooks #2711

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

zsilbi
Copy link
Contributor

@zsilbi zsilbi commented Sep 5, 2024

πŸ”— Linked issue

Original issue: #2480

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)

πŸ“š Description

#2487 introduced custom types for these events and hooks that contain typos. (for example: adk() instead of ack())

There is an open PR: #2626 but it's still not correct.

There are native types provided by @cloudflare/workers-types that we can use for these.
I updated the exported handler and the hooks accordingly.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Thanks ❀️

@pi0 pi0 merged commit 57f22c9 into nitrojs:v2 Sep 29, 2024
4 checks passed
@pi0 pi0 mentioned this pull request Oct 31, 2024
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