File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,14 @@ const headers = {
7979
8080// Defaulting to the branch for now to get the latest docs-only changes
8181let commit = process . argv [ 2 ] ?? process . env . GH_COMMIT ?? 'master' ;
82+ // Get the latest tag
8283if ( ! commit ) {
83- const { body : release } = await got ( 'https://api.github.com/repos/obsproject/obs-websocket/releases/latest ' , {
84+ const { body : tags } = await got ( 'https://api.github.com/repos/obsproject/obs-websocket/tags ' , {
8485 headers,
8586 responseType : 'json' ,
8687 } ) ;
87- commit = ( release as JsonObject ) . tag_name as string ;
88+ // @ts -expect-error cba typing the response
89+ commit = tags [ 0 ] . name as string ;
8890}
8991
9092const { body : protocol } = await got < GeneratedProtocol > ( `https://raw.githubusercontent.com/obsproject/obs-websocket/${ commit } /docs/generated/protocol.json` , {
Original file line number Diff line number Diff line change @@ -838,6 +838,12 @@ export interface OBSEventTypes {
838838 */
839839 studioModeEnabled : boolean ;
840840 } ;
841+ ScreenshotSaved : {
842+ /**
843+ * Path of the saved image file
844+ */
845+ savedScreenshotPath : string ;
846+ } ;
841847 VendorEvent : {
842848 /**
843849 * Name of the vendor emitting the event
You can’t perform that action at this time.
0 commit comments