docs: add type reference links in Menu and MenuItem API documentation (#49437)

* docs: add type reference links in Menu and MenuItem API documentation

* docs: revert type links in Menu return types to fix parser
This commit is contained in:
Sourav Bera
2026-01-26 16:52:28 +05:30
committed by GitHub
parent 30f365d9d8
commit 75be2fe8d6
2 changed files with 6 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ The `Menu` class has the following static methods:
#### `Menu.setApplicationMenu(menu)`
- `menu` Menu | null
- `menu` [Menu](menu.md) | null
Sets `menu` as the application menu on macOS. On Windows and Linux, the
`menu` will be set as each window's top menu.
@@ -70,9 +70,9 @@ for more information on macOS' native actions.
#### `Menu.buildFromTemplate(template)`
- `template` (MenuItemConstructorOptions | MenuItem)[]
- `template` (MenuItemConstructorOptions | [MenuItem](menu-item.md))[]
Returns `Menu`
Returns [`Menu`](menu.md)
Generally, the `template` is an array of `options` for constructing a
[MenuItem](menu-item.md). The usage can be referenced above.