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

Implement type safety and type definitions on the events #249

Open
jcodog opened this issue Jan 15, 2025 · 0 comments
Open

Implement type safety and type definitions on the events #249

jcodog opened this issue Jan 15, 2025 · 0 comments

Comments

@jcodog
Copy link

jcodog commented Jan 15, 2025

Work on making this fully compatible with typescript including some type definitions for the data, so that it can be incorporated into typescript apps running on nextjs.

Being able to access the connector.on("chat", (data) => console.log(data)) is great, but being able to see all the possible returned options on the data object from the chat event would be massively helpful for working with this package.

Instead of manually defining the types of the events used every time this package is implemented into a typescript app. Some apps are failing to compile due to lack of type definitions from this package.

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

No branches or pull requests

1 participant