MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / postUISettingsChangingMessage

Function postUISettingsChangingMessage

apps/plugin/ui-src/messaging.ts:14–25  ·  view source on GitHub ↗
(
  key: string,
  value: T,
  options?: WindowPostMessageOptions,
)

Source from the content-addressed store, hash-verified

12) => postMessage({ pluginMessage: message }, options);
13
14export const postUISettingsChangingMessage = <T>(
15 key: string,
16 value: T,
17 options?: WindowPostMessageOptions,
18) => {
19 const message: SettingWillChangeMessage<T> = {
20 type: "pluginSettingWillChange",
21 key,
22 value,
23 };
24 postUIMessage(message, options);
25};

Callers 2

handleFrameworkChangeFunction · 0.90
handlePreferencesChangeFunction · 0.90

Calls 1

postUIMessageFunction · 0.85

Tested by

no test coverage detected