1
0
Эх сурвалжийг харах

docs: Simplify getImpactRadius API call in verification guide

Updates example code to use the simplified two-parameter form of getImpactRadius instead of the options object pattern, making the documentation consistent with current API usage.
Colby McHenry 2 сар өмнө
parent
commit
d4258b1651

+ 1 - 1
docs/SEARCH_QUALITY_LOOP.md

@@ -235,7 +235,7 @@ async function test() {
   const node = results[0].node;
   console.log(\`Impact analysis for: \${node.name} (\${node.kind}) — \${node.filePath}\`);
 
-  const impact = cg.getImpactRadius(node.id, { depth: 2 });
+  const impact = cg.getImpactRadius(node.id, 2);
   console.log(\`\nAffected nodes: \${impact.nodes.size}\`);
   console.log(\`Affected edges: \${impact.edges.length}\`);