Browse Source

Allow TypeScript definitions work with strictNullChecks

See https://github.com/electron/electron-typescript-definitions/issues/25
Andrey Kurdyumov 7 years ago
parent
commit
189be18dd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/api/browser-window.md

+ 1 - 1
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.