콘텐츠로 이동

invoke

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

Module @netwiv/api/core · Kind Function

import { invoke } from '@netwiv/api/core';

Sends a message to the backend.

function invoke<T>(cmd: string, args?: InvokeArgs | undefined, options?: InvokeOptions | undefined): Promise<T>
import { invoke } from '@netwiv/api/core';
await invoke('login', { user: 'tauri', password: 'poiwe3h4r5ip3yrhtew9ty' });

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.