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

fix(types): correct RecordStateChanged typings #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niieani
Copy link

@niieani niieani commented Aug 4, 2022

Description:

Correct typings: adds missing outputPath property when outputState is either 'OBS_WEBSOCKET_OUTPUT_STARTED' or 'OBS_WEBSOCKET_OUTPUT_STOPPED'.

Adds missing `outputPath` property when `outputState` is either 'OBS_WEBSOCKET_OUTPUT_STARTED' or 'OBS_WEBSOCKET_OUTPUT_STOPPED'.
Comment on lines +593 to +598
outputState: 'OBS_WEBSOCKET_OUTPUT_STARTING' | 'OBS_WEBSOCKET_OUTPUT_STOPPING';
} | {
/**
* Whether the output is active
*/
outputActive: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Duplicated

/**
* The specific state of the output
*/
outputState: 'OBS_WEBSOCKET_OUTPUT_STARTED' | 'OBS_WEBSOCKET_OUTPUT_STOPPED';
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

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