Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

mediumFromStandard

Source

Derive the cable medium implied by an Ethernet standard. Resolves the standard via `STANDARD_SPECS` and maps `cableKind` + `fiberMode` onto the unified `CableMedium` enum.

mediumFromStandard(standard: EthernetStandard | undefined): CableMedium | undefined

Parameters

Parameter Type Description Default
standard EthernetStandard | undefined No additional description.

Returns

CableMedium | undefined

libs/@shumoku/core/src/models/standards.ts:666