UNPKG

comlink-adapters

Version:

Implementation of comlink adapters for different application platforms

19 lines (18 loc) 428 B
import type { Endpoint } from 'comlink'; /** * create figma ui endpoint * @param options * @returns */ export declare function figmaUIEndpoint(options?: { origin?: string; }): Endpoint; /** * create figma core endpoint * @param options * @returns */ export declare function figmaCoreEndpoint(options?: { origin?: string; checkProps?: (props: OnMessageProperties) => boolean | Promise<boolean>; }): Endpoint;