콘텐츠로 이동

emit

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/event · Kind Function

import { emit } from '@netwiv/api/event';

Emits an event to all {@link EventTargettargets}.

function emit<T>(event: string, payload?: T | undefined): Promise<void>
import { emit } from '@netwiv/api/event';
await emit('frontend-loaded', { loggedIn: true, token: 'authToken' });

Upstream since 1.0.0


Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.