mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
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:
parent
a13a426bcc
commit
a81cb18f0c
2 changed files with 8 additions and 1 deletions
|
|
@ -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()
|
||||
```
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue