Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

plugFromStandard

Source

Build a plug from a chosen module standard. The plug carries only the `module` — `cage` is intentionally omitted because it's derivable from `module.standard` via `STANDARD_SPECS[std].cage`. Returns `undefined` if the standard is unknown.

plugFromStandard(standard: EthernetStandard, sku?: string): LinkPlug | undefined

Parameters

Parameter Type Description Default
standard EthernetStandard No additional description.
sku string No additional description.

Returns

LinkPlug | undefined

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