From 189be18dd2bbffb4c5c13c1d239113c83bbc56d0 Mon Sep 17 00:00:00 2001 From: Andrey Kurdyumov Date: Wed, 12 Jul 2017 20:29:32 +0600 Subject: [PATCH] Allow TypeScript definitions work with strictNullChecks See https://github.com/electron/electron-typescript-definitions/issues/25 --- docs/api/browser-window.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index f5b812078904..19e722a24d2d 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -1110,7 +1110,7 @@ Same as `webContents.reload`. #### `win.setMenu(menu)` _Linux_ _Windows_ -* `menu` Menu +* `menu` Menu | null Sets the `menu` as the window's menu bar, setting it to `null` will remove the menu bar.