test: tsify spec for experimental views api (#19966)

This commit is contained in:
Jeremy Apthorp 2019-08-27 00:37:30 -07:00 committed by Cheng Zhao
parent 4e809f0048
commit 92c3a4e4c2
3 changed files with 22 additions and 14 deletions

View file

@ -16,4 +16,11 @@ declare namespace Electron {
interface WebContents {
getOwnerBrowserWindow(): BrowserWindow;
}
// Experimental views API
class TopLevelWindow {
constructor(args: {show: boolean})
setContentView(view: View): void
}
class View {}
}