refactor: ginify desktopCapturer (#22746)
This commit is contained in:
parent
9aa27e1709
commit
a824e12275
5 changed files with 54 additions and 28 deletions
3
typings/internal-electron.d.ts
vendored
3
typings/internal-electron.d.ts
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue