Skip to content

Conversation

@Hackder
Copy link

@Hackder Hackder commented Sep 22, 2025

After collecting types from all the commands, make sure to remove the type for tauri::ipc::Channel as it may be present if any command took the channel as argument.

Until this addition the user would generate the TAURI_CHANNEL type in their bindings if they called .events() and then .commands() in this order.

The call to .events() tried to remove this type, but it got added later in the call to .commands().

this fixes: #171

After collecting types from all the commands, make sure to remove the
type for `tauri::ipc::Channel` as it may be present if any command took
the channel as argument.

Until this addition the user would generate the TAURI_CHANNEL type in
their bindings if they called `.events()` and then `.commands()` in this
order.

The call to `.events()` tried to remove this type, but it got added
later in the call to `.commands()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate TAURI_CHANNEL bindings

1 participant