MCPcopy Index your code
hub / github.com/pyscript/pyscript / validate

Function validate

core/src/plugins/py-editor.js:34–37  ·  view source on GitHub ↗
(config, result)

Source from the content-addressed store, hash-verified

32};
33
34const validate = (config, result) => {
35 if (typeof result === "boolean") throw `Invalid source: ${config}`;
36 return result;
37};
38
39const getRelatedScript = (target, type) => {
40 const editor = target.closest(`.${type}-editor-box`);

Callers 2

executeFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected