docs: no class inheritance (#47403)

This commit is contained in:
Erick Zhao
2025-06-10 01:00:06 -07:00
committed by GitHub
parent c964296ec3
commit 6aa3665b96
15 changed files with 67 additions and 6 deletions

View File

@@ -33,6 +33,10 @@ Process: [Main](../glossary.md#main-process)
`WebContentsView` is an [EventEmitter][event-emitter].
> [!WARNING]
> Electron's built-in classes cannot be subclassed in user code.
> For more information, see [the FAQ](../faq.md#class-inheritance-does-not-work-with-electron-built-in-modules).
### `new WebContentsView([options])`
* `options` Object (optional)