# validateLinkCompatibility

Canonical: https://docs.shumoku.dev/ja/library/api/validateLinkCompatibility
Language: ja

@shumoku/core · 0.4.0 · function

# validateLinkCompatibility

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/port-compatibility.ts#L325)

APIの説明は英語のcanonical 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[]
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `fromPort` | `NodePort | undefined` | 追加説明はありません。 | `—` |
| `toPort` | `NodePort | undefined` | 追加説明はありません。 | `—` |
| `link` | `Pick<Link, "from" | "to" | "cable">` | 追加説明はありません。 | `—` |

## 戻り値

```
ValidationIssue[]
```

[`libs/@shumoku/core/src/models/port-compatibility.ts:325`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/port-compatibility.ts#L325)
