mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Merge pull request #5130 from arnarg/updating-electron
github-electron: Adding all available options to the BrowserWindowOptions interface
This commit is contained in:
45
github-electron/github-electron.d.ts
vendored
45
github-electron/github-electron.d.ts
vendored
@@ -456,8 +456,53 @@ declare module GitHubElectron {
|
||||
isVisibleOnAllWorkspaces(): boolean;
|
||||
}
|
||||
|
||||
// Includes all options BrowserWindow can take as of this writing
|
||||
// http://electron.atom.io/docs/v0.29.0/api/browser-window/
|
||||
interface BrowserWindowOptions extends Rectangle {
|
||||
show?: boolean;
|
||||
'use-content-size'?: boolean;
|
||||
center?: boolean;
|
||||
'min-width'?: number;
|
||||
'min-height'?: number;
|
||||
'max-width'?: number;
|
||||
'max-height'?: number;
|
||||
resizable?: boolean;
|
||||
'always-on-top'?: boolean;
|
||||
fullscreen?: boolean;
|
||||
'skip-taskbar'?: boolean;
|
||||
'zoom-factor'?: number;
|
||||
kiosk?: boolean;
|
||||
title?: string;
|
||||
icon?: NativeImage|string;
|
||||
frame?: boolean;
|
||||
'node-integration'?: boolean;
|
||||
'accept-first-mouse'?: boolean;
|
||||
'disable-auto-hide-cursor'?: boolean;
|
||||
'auto-hide-menu-bar'?: boolean;
|
||||
'enable-larger-than-screen'?: boolean;
|
||||
'dark-theme'?: boolean;
|
||||
preload?: string;
|
||||
transparent?: boolean;
|
||||
type?: string;
|
||||
'standard-window'?: boolean;
|
||||
'web-preferences'?: any; // Object
|
||||
javascript?: boolean;
|
||||
'web-security'?: boolean;
|
||||
images?: boolean;
|
||||
java?: boolean;
|
||||
'text-areas-are-resizable'?: boolean;
|
||||
webgl?: boolean;
|
||||
webaudio?: boolean;
|
||||
plugins?: boolean;
|
||||
'extra-plugin-dirs'?: string[];
|
||||
'experimental-features'?: boolean;
|
||||
'experimental-canvas-features'?: boolean;
|
||||
'subpixel-font-scaling'?: boolean;
|
||||
'overlay-scrollbars'?: boolean;
|
||||
'overlay-fullscreen-video'?: boolean;
|
||||
'shared-worker'?: boolean;
|
||||
'direct-write'?: boolean;
|
||||
'page-visibility'?: boolean;
|
||||
}
|
||||
|
||||
interface Rectangle {
|
||||
|
||||
Reference in New Issue
Block a user