From 6b60fb5bccd2dba1c928d1a120747a1322491c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bazyli=20Brz=C3=B3ska?= Date: Wed, 3 Aug 2022 23:32:03 -0700 Subject: [PATCH] fix(types): correct RecordStateChanged typings Adds missing `outputPath` property when `outputState` is either 'OBS_WEBSOCKET_OUTPUT_STARTED' or 'OBS_WEBSOCKET_OUTPUT_STOPPED'. --- src/types.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 94d5a2c..fbbaa8c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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'; + /** + * The filename of the output recording + */ + outputPath: string; }; ReplayBufferStateChanged: { /**