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

Function createSettings

src/gui/MacroGUIs/UserScriptSettingsModal.test.ts:34–47  ·  view source on GitHub ↗
(optionOverrides: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

32}
33
34function createSettings(optionOverrides: Record<string, unknown> = {}) {
35 return {
36 name: "Script Settings",
37 options: {
38 "API Key": {
39 type: "secret" as const,
40 defaultValue: "must-not-persist",
41 placeholder: "Paste API key",
42 description: "API key",
43 ...optionOverrides,
44 },
45 },
46 };
47}
48
49function flushPromises(): Promise<void> {
50 return new Promise((resolve) => setTimeout(resolve, 0));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected