MCPcopy
hub / github.com/cpaczek/skylight / set

Function set

web/src/control/Control.tsx:70–70  ·  view source on GitHub ↗
(patch: Partial<Config>)

Source from the content-addressed store, hash-verified

68 }
69
70 const set = (patch: Partial<Config>) => conn.patchConfig(patch);
71 const setField = (k: keyof ShowFields, v: boolean) =>
72 conn.patchConfig({ showFields: { ...cfg.showFields, [k]: v } });
73 const statusMessage = state.status?.message ? ` · ${state.status.message}` : "";

Callers 9

changeLocationFunction · 0.85
switchToProfileFunction · 0.85
saveCurrentProfileFunction · 0.85
removeProfileFunction · 0.85
centerOnTrafficFunction · 0.85
importAirportFunction · 0.85
centerOnAirportFunction · 0.85
useCurrentLocationFunction · 0.85
ControlFunction · 0.85

Calls 1

patchConfigMethod · 0.65

Tested by

no test coverage detected