obs-websocket-community-projects / obs-websocket-js

Consumes https://github.com/obsproject/obs-websocket
MIT License
661 stars 95 forks source link

`GetSceneItemProperties` has incomplete type #266

Open artdevgame opened 2 years ago

artdevgame commented 2 years ago

https://github.com/obs-websocket-community-projects/obs-websocket-js/blob/82780a6da84d918d0ee59792f6943984df64dedb/src/typings/obsWebsocket.ts#L368

According to the obs-websocket docs, item can be a string or an object: https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsceneitemproperties

So the type should probably be?

item: { name?: string; id?: number } | string;

Same deal for SetSceneItemProperties