build: update to typescript 4 (#25091)
This commit is contained in:
parent
0efcaec4d6
commit
8baa9deccd
4 changed files with 72 additions and 80 deletions
10
typings/internal-electron.d.ts
vendored
10
typings/internal-electron.d.ts
vendored
|
@ -224,8 +224,8 @@ declare namespace ElectronInternal {
|
|||
|
||||
interface DesktopCapturer {
|
||||
startHandling(captureWindow: boolean, captureScreen: boolean, thumbnailSize: Electron.Size, fetchWindowIcons: boolean): void;
|
||||
_onerror: (error: string) => void;
|
||||
_onfinished: (sources: Electron.DesktopCapturerSource[], fetchWindowIcons: boolean) => void;
|
||||
_onerror?: (error: string) => void;
|
||||
_onfinished?: (sources: Electron.DesktopCapturerSource[], fetchWindowIcons: boolean) => void;
|
||||
}
|
||||
|
||||
interface GetSourcesOptions {
|
||||
|
@ -289,9 +289,9 @@ declare namespace ElectronInternal {
|
|||
|
||||
public contentWindow: Window;
|
||||
|
||||
public connectedCallback(): void;
|
||||
public attributeChangedCallback(): void;
|
||||
public disconnectedCallback(): void;
|
||||
public connectedCallback?(): void;
|
||||
public attributeChangedCallback?(): void;
|
||||
public disconnectedCallback?(): void;
|
||||
|
||||
// Created in web-view-impl
|
||||
public getWebContentsId(): number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue