5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 00:43:14 +08:00
wails/v3/examples/binding
Fabio Massaioli 939d22d670
[v3] Enforce stricter typing for generated bindings (#3498)
* Subject generator output to stricter TS linting

* Fix runtime support code typing

* Relax tsconfig for templates

* Update test data

* Update binding example
2024-05-19 23:28:45 +10:00
..
assets [v3] Enforce stricter typing for generated bindings (#3498) 2024-05-19 23:28:45 +10:00
data [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
GreetService.go [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
main.go [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
README.md [v3] Fix binding generator output and import paths (#3334) 2024-03-22 21:18:04 +11:00

Bindings Example

This example demonstrates how to generate bindings for your application.

To generate bindings, run wails3 generate bindings -b -d assets/bindings in this directory.

See more options by running wails3 generate bindings --help.

Notes

  • The bindings generator is still a work in progress and is subject to change.
  • The generated code uses wails.CallByID by default. This is the most secure and quickest way to call a function. In a future release, we will look at generating wails.CallByName too.