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

@@ -37,6 +37,10 @@ ipcRenderer.on('port', (e) => {
})
```
> [!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).
### Instance Properties
#### `channel.port1`