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

docs(post-message): update using-a-post-message #92

Merged
merged 2 commits into from
Dec 21, 2024
Merged

Conversation

ehddud1006
Copy link
Contributor

Thank you for creating this wonderful library. 🙇

While reading the "Using PostMessage" chapter, I noticed a few parts where I thought the code might not have been as the maintainer originally intended, so I made some modifications. I would appreciate it if you could review them.

},
eventName2: {
validate: (value) => data as { message: string }, // This is not recommended; please use validation libraries like zod or valibot.
validate: (value) => value as { message: string }, // This is not recommended; please use validation libraries like zod or valibot.
Copy link
Owner

Choose a reason for hiding this comment

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

Thank you for noticing! Since eventName1 exists, could you unify it as data?

@gronxb gronxb changed the title chore(docs): update using-a-post-message docs(post-message): update using-a-post-message Dec 21, 2024
Copy link
Owner

@gronxb gronxb left a comment

Choose a reason for hiding this comment

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

thanks !

@gronxb gronxb merged commit 99c96bd into gronxb:main Dec 21, 2024
1 check passed
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