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

[RFE] Add TypeScript Support #39

Open
mitchwadair opened this issue Nov 6, 2021 · 1 comment
Open

[RFE] Add TypeScript Support #39

mitchwadair opened this issue Nov 6, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@mitchwadair
Copy link
Owner

Is your feature request related to a problem? Please describe.
A lot of people might use TS to develop their applications.

Describe the solution you'd like
TES should support that by providing type definitions for TES functions. This would be provided through DefinitelyTyped. Maintaining these types will probably be a bit of a pain as EventSub is updated, but not a huge deal. Some examples of things that would need to be added:

  • Every subscription type
  • Condition types for subscriptions
  • Payloads
  • Subscriptions
  • etc
@mitchwadair mitchwadair added the enhancement New feature or request label Nov 6, 2021
@mitchwadair mitchwadair changed the title [RFE] Support Typescript Through DT [RFE] Add TypeScript Support Mar 21, 2022
@mitchwadair
Copy link
Owner Author

Might be able to avoid publishing to DefinitelyTyped by just including a .d.ts file and adding the types key in package.json
See: https://betterstack.dev/blog/publishing-type-definitions-with-npm-package/#heading-including-type-definitions

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
None yet
Development

No branches or pull requests

1 participant