Skip to content

Implement type safety and type definitions on the events #249

Open
@jcodog

Description

@jcodog

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions