docs: no class inheritance (#47432)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Erick Zhao <ezhao@slack-corp.com>
This commit is contained in:
trop[bot] 2025-06-10 13:14:23 +02:00 committed by GitHub
commit 47caba64ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 67 additions and 6 deletions

View file

@ -33,6 +33,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`