MCPcopy Create free account
hub / github.com/chhoumann/quickadd / getControlValue

Method getControlValue

src/quickAddSettingsTab.ts:67–76  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

65 // -----------------------------------------------------------------------
66
67 override getControlValue(key: string): unknown {
68 const state = settingsStore.getState();
69
70 // `inputPrompt` is stored as an enum but surfaced as a boolean toggle.
71 if (key === "inputPrompt") {
72 return state.inputPrompt === "multi-line";
73 }
74
75 return state[key as keyof QuickAddSettings];
76 }
77
78 override setControlValue(key: string, value: unknown): void {
79 if (key === "inputPrompt") {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected