Skip to content

Fix some types for more understanding #311

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

Closed
wants to merge 2 commits into from
Closed

Fix some types for more understanding #311

wants to merge 2 commits into from

Conversation

CommandMaker
Copy link

Related Issue (if applicable): I created an issue 2 days ago #310

Description:

In the MediaInputActionTriggered and the TriggerMediaInputAction the key mediaAction was type-hinted as string but for more understand, I added the possible value which are a little bit complicated (like OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE)

And I also fixed a spelling mistake in the GetRecordStatus type the key outputPaused was spelled ouputPaused

…" in "outputPaused")

fix: remove unused import JsonArray in types.ts
…ActionTriggered mediaAction type (ObsMediaInputAction)
@@ -608,7 +608,7 @@ export interface OBSEventTypes {
/**
* Action performed on the input. See `ObsMediaInputAction` enum
*/
mediaAction: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned at the start of this file, this file is auto generated and when there's a new release changes like this will not survive.

Either implement this to obs-websocket repo so docs/generated/protocol.json has this info that the generator can then read (preferred), or update scripts/build-types.ts so the changes persist

@CommandMaker CommandMaker deleted the patch-types branch November 13, 2022 17:02
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

Successfully merging this pull request may close these issues.

2 participants