addPluginListener
Module @netwiv/api/core · Kind Function
import { addPluginListener } from '@netwiv/api/core';Adds a listener to a plugin event.
Signature
Section titled “Signature”function addPluginListener<T>(plugin: string, event: string, cb: (payload: T): void) => Promise<PluginListener>Upstream since 2.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.