@shumoku/core · 0.4.0 · function
validateLinkCompatibility
Validate a link against its endpoints, ports, and cable. Runs every registered endpoint-level and link-level check; collects all issues the UI / consumers can route to inline markers via `issuesForTarget`.
validateLinkCompatibility(fromPort: NodePort | undefined, toPort: NodePort | undefined, link: Pick<Link, "from" | "to" | "cable">): ValidationIssue[] Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
fromPort | NodePort | undefined | No additional description. | — |
toPort | NodePort | undefined | No additional description. | — |
link | Pick<Link, "from" | "to" | "cable"> | No additional description. | — |
Returns
ValidationIssue[]