# effectivePlugCage

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

@shumoku/core · 0.4.0 · function

# effectivePlugCage

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

APIの説明は英語のcanonical sourceを表示しています。

Resolve the effective plug cage for an endpoint with the canonical priority: explicit \`plug.cage\` > module's required cage > port.connectors\[0\] (only when the port has a single connector — multi-connector combo ports require an explicit choice on the link side). Returns undefined when none are known.

```
effectivePlugCage(ep: LinkEndpoint, port?: NodePort): PortConnector | undefined
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `ep` | `LinkEndpoint` | 追加説明はありません。 | `—` |
| `port` | `NodePort` | 追加説明はありません。 | `—` |

## 戻り値

```
PortConnector | undefined
```

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