From a81cb18f0c7a14aa26ef6b686b41b8e8e0445ba2 Mon Sep 17 00:00:00 2001 From: Ndianabasi Udonkang Date: Wed, 17 Dec 2025 11:40:18 +0100 Subject: [PATCH] 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 --- docs/src/content/docs/reference/frontend-runtime.mdx | 8 +++++++- v3/UNRELEASED_CHANGELOG.md | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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