fix(javascript): retain endpoint candidates through graph projection
This commit is contained in:
1 parent
6e344302cb
commit
88afcc738b
9 files changed
+226
-27
No files matched your search
@@ -77,6 +77,7 @@ export interface AstEdgeInput {
|
||||
/** Inferred static relationship edge values. */
|
||||
export interface InferenceEdgeInput extends AstEdgeInput {
|
||||
readonly limitations?: readonly string[];
|
||||
readonly confidence?: "high" | "medium" | "low";
|
||||
readonly relation:
|
||||
| "imports"
|
||||
| "loads"
|
||||
@@ -194,6 +195,9 @@ export const addStaticInferenceEdge = (
|
||||
range: input.range,
|
||||
operation: "map-static-relationship",
|
||||
coverage: input.coverage,
|
||||
...(input.confidence === undefined
|
||||
? {}
|
||||
: { confidence: input.confidence }),
|
||||
...(input.limitations === undefined
|
||||
? {}
|
||||
: { limitations: input.limitations }),
|
||||
|
||||
Reference in new issue
Block a user