-
Notifications
You must be signed in to change notification settings - Fork 97
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -590,7 +590,20 @@ export interface OBSEventTypes { | |
/** | ||
* The specific state of the output | ||
*/ | ||
outputState: string; | ||
outputState: 'OBS_WEBSOCKET_OUTPUT_STARTING' | 'OBS_WEBSOCKET_OUTPUT_STOPPING'; | ||
} | { | ||
/** | ||
* Whether the output is active | ||
*/ | ||
outputActive: boolean; | ||
/** | ||
* The specific state of the output | ||
*/ | ||
outputState: 'OBS_WEBSOCKET_OUTPUT_STARTED' | 'OBS_WEBSOCKET_OUTPUT_STOPPED'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
/** | ||
* The filename of the output recording | ||
*/ | ||
outputPath: string; | ||
}; | ||
ReplayBufferStateChanged: { | ||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated