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

Function setField

web/src/control/Control.tsx:71–72  ·  view source on GitHub ↗
(k: keyof ShowFields, v: boolean)

Source from the content-addressed store, hash-verified

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}` : "";
74
75 const changeLocation = async (q: string) => {

Callers 1

ControlFunction · 0.85

Calls 1

patchConfigMethod · 0.65

Tested by

no test coverage detected