refactor: ginify desktopCapturer (#22746)

This commit is contained in:
Jeremy Apthorp 2020-03-19 11:35:11 -07:00 committed by GitHub
parent 9aa27e1709
commit a824e12275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 28 deletions

View file

@ -94,7 +94,8 @@ declare namespace ElectronInternal {
interface DesktopCapturer {
startHandling(captureWindow: boolean, captureScreen: boolean, thumbnailSize: Electron.Size, fetchWindowIcons: boolean): void;
emit: typeof NodeJS.EventEmitter.prototype.emit | null;
_onerror: (error: string) => void;
_onfinished: (sources: Electron.DesktopCapturerSource[], fetchWindowIcons: boolean) => void;
}
interface GetSourcesOptions {