feature request: Export Events Type #32

Closed
opened 2026-02-16 12:26:50 -05:00 by yindo · 0 comments
Owner

Originally created by @avasilic on GitHub (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

Originally created by @avasilic on GitHub (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
yindo added the enhancement label 2026-02-16 12:26:50 -05:00
yindo closed this issue 2026-02-16 12:26:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/javascript-client-sdk#32