MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / generateHints

Function generateHints

src/components/palette/index.js:140–144  ·  view source on GitHub ↗

* Generates hint for inputhints * @param {HintCallback} setHints Set hints callback * @param {HintModification} hintModification Hint modification object

(setHints, hintModification)

Source from the content-addressed store, hash-verified

138 * @param {HintModification} hintModification Hint modification object
139 */
140 async function generateHints(setHints, hintModification) {
141 const list = getList(hintModification);
142 const data = list instanceof Promise ? await list : list;
143 setHints(data);
144 }
145
146 /**
147 * Removes the palette

Callers

nothing calls this directly

Calls 1

setHintsFunction · 0.85

Tested by

no test coverage detected