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

Typescript / JSONSchema Types #49

Open
braebo opened this issue Oct 29, 2024 · 4 comments
Open

Typescript / JSONSchema Types #49

braebo opened this issue Oct 29, 2024 · 4 comments

Comments

@braebo
Copy link

braebo commented Oct 29, 2024

Why are there no types provided? Or an OpenAPI schema from which to generate types at least?

It would be very simple to provide type definitions (or at least a JSONSchema). Doing so would make this unwieldy API 10x easier to learn, debug, update, and write for, and could be done entirely with JSDoc comments in vanilla JS files.

@c4ldas
Copy link

c4ldas commented Oct 29, 2024

I believe you came a little late to the party. The widgets here are part of the old Overlays system, which won't receive updates or new features anymore, unfortunately.
The new Elements (https://streamelements.com/dashboard/alerts-and-widgets) is the way Streamelements is going to be used for widgets and overlays (still in public beta, but open to use) and it is not compatible with Overlays. In case you want, the documentation is here:

https://dev.streamelements.com/docs/widgets-elements-sdk/

And the staff is available for suggestions and bug reports on Streamelements Discord (https://strms.net/discord), channel #elements-editor-widgets20

@Sairenix
Copy link

Why aren't the old docs linking to the new featureset?
Googling custom widget only returns the old docs with NO mention of deprecation.

@c4ldas
Copy link

c4ldas commented Oct 30, 2024

Why aren't the old docs linking to the new featureset? Googling custom widget only returns the old docs with NO mention of deprecation.

I have no idea. I'm not part of the team, I'm just a user like you. There isn't anyone from the staff answering issues here or even accepting PRs.

The documentation for the API, Overlays/custom widgets, and Elements is available at https://dev.streamelements.com/ and https://docs.streamelements.com/. However, neither of them is complete. The first one lacks a lot of information (especially in terms of API endpoints), and the latter is still in development.

@DaniruKun
Copy link
Member

Good point, I will update the README.

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

4 participants