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

feature request: Export Events Type #92

Closed
net-tech opened this issue Jan 27, 2024 · 0 comments · Fixed by #93
Closed

feature request: Export Events Type #92

net-tech opened this issue Jan 27, 2024 · 0 comments · Fixed by #93
Labels
enhancement New feature or request

Comments

@net-tech
Copy link
Contributor

net-tech commented Jan 27, 2024

Issue Summary:
I'm currently working on a Revolt bot using revolt.js, and I noticed that the events type is not exported. Having access to the events type would be nice so that I can enforce type safety better in my own event handler.

Steps to Reproduce:
N/A

Expected Behavior:
I expected the library to export the events type so that developers can ensure type safety in their event handlers.

Actual Behavior:
The events type is not exported.

Additional Information:
N/A

Proposed Solution:
Export the events type in the API library to facilitate better type safety in event handling. I will open a GitHub PR.

Environment:

  • revolt.js Version: v7.0.0-beta.10
  • Node.js Version: v20.4.0
  • TypeScript Version: Version 5.3.3

Screenshots/Code Snippets:
N/A

@net-tech net-tech added the enhancement New feature or request label Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant