Enhance bindings generation documentation (#4773)

* Enhance bindings generation documentation

Added TypeScript option and help command for bindings generation.

* Update UNRELEASED_CHANGELOG with new events and docs

Updated the changelog to include new WebKit2 load-change events and additional documentation for frontend bindings.

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Ndianabasi Udonkang 2025-12-17 11:40:18 +01:00 committed by GitHub
commit a81cb18f0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -133,6 +133,12 @@ Generate bindings:
```bash
wails3 generate bindings
# Or, to include TypeScript definitions
wails3 generate bindings -ts
# For more options, see:
wails3 generate bindings -help
```
Use typed events in your frontend:
@ -944,4 +950,4 @@ On('custom-event', (event: WailsEvent) => {
// All methods are fully typed
const size: { width: number, height: number } = await Window.Size()
```
```

View file

@ -19,6 +19,7 @@ After processing, the content will be moved to the main changelog and this file
<!-- New features, capabilities, or enhancements -->
## Changed
- Update the `Frontend Runtime` documentation by adding more options for generating frontend bindings by @ndianabasi
<!-- Changes in existing functionality -->
## Fixed