You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error TS2322: Type '{ mandatory: { chromeMediaSource: string; chromeMediaSourceId: string; }; }' is not assignable to type 'boolean | MediaTrackConstraints | undefined'.
Object literal may only specify known properties, and 'mandatory' does not exist in type 'MediaTrackConstraints'.
Following desktopCapturer docs, I get type errors like:
I've fixed this by adding:
But I suspect this should be included in Electron's TypeScript defs.
(It actually looks like this API is part of Chrome rather than part of Electron, but then I'm not sure where Chrome-specific type defs should go.)
The text was updated successfully, but these errors were encountered: