MCPcopy Create free account
hub / github.com/json-editor/json-editor / useFunc

Function useFunc

docs/scripts/ajv-validator.js:2363–2368  ·  view source on GitHub ↗
(gen, f)

Source from the content-addressed store, hash-verified

2361 exports.setEvaluated = setEvaluated;
2362 const snippets = {};
2363 function useFunc(gen, f) {
2364 return gen.scopeValue("func", {
2365 ref: f,
2366 code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)),
2367 });
2368 }
2369 exports.useFunc = useFunc;
2370 var Type;
2371 (function (Type) {

Callers

nothing calls this directly

Calls 1

scopeValueMethod · 0.80

Tested by

no test coverage detected