diff --git a/docs/src/content/docs/reference/frontend-runtime.mdx b/docs/src/content/docs/reference/frontend-runtime.mdx index 905f56e5b..4d56667fc 100644 --- a/docs/src/content/docs/reference/frontend-runtime.mdx +++ b/docs/src/content/docs/reference/frontend-runtime.mdx @@ -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() -``` \ No newline at end of file +``` diff --git a/v3/UNRELEASED_CHANGELOG.md b/v3/UNRELEASED_CHANGELOG.md index 8e4648038..bd2039680 100644 --- a/v3/UNRELEASED_CHANGELOG.md +++ b/v3/UNRELEASED_CHANGELOG.md @@ -19,6 +19,7 @@ After processing, the content will be moved to the main changelog and this file ## Changed +- Update the `Frontend Runtime` documentation by adding more options for generating frontend bindings by @ndianabasi ## Fixed