Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

validateLinkCompatibility

Source

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[]

libs/@shumoku/core/src/models/port-compatibility.ts:325