mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
test: use webContents.create() in type-safe way (#37281)
test: use (webContents as typeof ElectronInternal.WebContents).create() Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
2
typings/internal-electron.d.ts
vendored
2
typings/internal-electron.d.ts
vendored
@@ -280,7 +280,7 @@ declare namespace ElectronInternal {
|
||||
}
|
||||
|
||||
class WebContents extends Electron.WebContents {
|
||||
static create(opts: Electron.WebPreferences): Electron.WebContents;
|
||||
static create(opts?: Electron.WebPreferences): Electron.WebContents;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user