figwire
Version:
Bidirectional IPC communication between UI and core in Figma plugins. Lightweight and typed.
8 lines (5 loc) • 297 B
text/typescript
import { A as API, M as Methods, a as MethodPromises } from './api-BY8HQFix.js';
declare const pluginApiInstance: API;
declare function defineApi<T extends Methods>(methods: T): T;
declare function client<T extends Methods>(): MethodPromises<T>;
export { client, defineApi, pluginApiInstance };