Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

migratePortShape

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

Parameters

Parameter Type Description Default
port T No additional description.

Returns

T

libs/@shumoku/core/src/models/migrate.ts:42