fix: make sure classes in lib correctly implement Electron interfaces (#40291)
This commit is contained in:
parent
514a9319b9
commit
f66d4c7ee0
12 changed files with 21 additions and 17 deletions
2
typings/internal-electron.d.ts
vendored
2
typings/internal-electron.d.ts
vendored
|
@ -20,7 +20,7 @@ declare namespace Electron {
|
|||
}
|
||||
|
||||
interface AutoUpdater {
|
||||
isVersionAllowedForUpdate(currentVersion: string, targetVersion: string): boolean;
|
||||
isVersionAllowedForUpdate?(currentVersion: string, targetVersion: string): boolean;
|
||||
}
|
||||
|
||||
type TouchBarItemType = NonNullable<Electron.TouchBarConstructorOptions['items']>[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue