瀏覽代碼

chore(api): document new options from #6665 (#7072)

Lucas Fernandes Nogueira 2 年之前
父節點
當前提交
3303041c92
共有 2 個文件被更改,包括 12 次插入0 次删除
  1. 0 0
      tooling/api/docs/js-api.json
  2. 12 0
      tooling/api/src/window.ts

文件差異過大導致無法顯示
+ 0 - 0
tooling/api/docs/js-api.json


+ 12 - 0
tooling/api/src/window.ts

@@ -2391,6 +2391,18 @@ interface WindowOptions {
    * The user agent for the webview.
    */
   userAgent?: string
+  /**
+   * Whether the window's native maximize button is enabled or not. Defaults to `true`.
+   */
+  maximizable?: boolean
+  /**
+   * Whether the window's native minimize button is enabled or not. Defaults to `true`.
+   */
+  minimizable?: boolean
+  /**
+   * Whether the window's native close button is enabled or not. Defaults to `true`.
+   */
+  closable?: boolean
 }
 
 function mapMonitor(m: Monitor | null): Monitor | null {

部分文件因文件數量過多而無法顯示