emit
emit<
T>(event,payload?):Promise<void>
Defined in: event.ts:186
Emits an event to all targets.
T
string
Event name. Must include only alphanumeric characters, -, /, : and _.
T
Event payload.
Promise<void>
import { emit } from '@tauri-apps/api/event';await emit('frontend-loaded', { loggedIn: true, token: 'authToken' });1.0.0
© 2025 Tauri Contributors. CC-BY / MIT