# migratePortShape

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

@shumoku/core · 0.4.0 · function

# migratePortShape

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

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

Backwards-compat shim for saved files: an older NodePort serialized with \`cage: PortConnector\` (or \`cage: 'combo'\`) is normalized into the modern \`connectors: PortConnector\[\]\` shape on read. Combo expands to \['rj45', 'sfp'\] as a best-effort default; users can refine from the editor afterwards.

```
migratePortShape(port: T): T
```

## パラメーター

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

## 戻り値

```
T
```

[`libs/@shumoku/core/src/models/migrate.ts:42`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/migrate.ts#L42)
