MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / updatePiSetting

Function updatePiSetting

desktop/pi-settings.ts:22–34  ·  view source on GitHub ↗
(
  key: PiSettingsKey,
  value: unknown,
  projectPath?: string | undefined | null | undefined,
)

Source from the content-addressed store, hash-verified

20}
21
22export async function updatePiSetting(
23 key: PiSettingsKey,
24 value: unknown,
25 projectPath?: string | undefined | null | undefined,
26): Promise<PiSettings> {
27 const settings = await invokeRuntimeHost('updatePiSetting', {
28 key,
29 value,
30 projectPath: projectPath ?? null,
31 })
32 await invalidateRuntimeHostSettings({ projectPath: projectPath ?? null })
33 return settings
34}

Callers 2

handleRequestFunction · 0.90

Calls 2

invokeRuntimeHostFunction · 0.90

Tested by

no test coverage detected