mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
fix(javascript): retain endpoint candidates through graph projection
This commit is contained in:
@@ -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