Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

resolveBandwidthBps

Source

Parse a bandwidth string ("10G", "2.5Gbps", "500M") or raw bps number into bits/sec. Pure utility — used by plugin configs that accept user-typed bandwidth values; not tied to Link semantics.

resolveBandwidthBps(bw: LinkBandwidth | null | undefined): number | undefined

Parameters

Parameter Type Description Default
bw LinkBandwidth | null | undefined No additional description.

Returns

number | undefined

libs/@shumoku/core/src/layout/link-utils.ts:33