# mediumFromGrade

Canonical: https://docs.shumoku.dev/en/library/api/mediumFromGrade
Language: en

@shumoku/core · 0.4.0 · function

# mediumFromGrade

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/standards.ts#L638)

Derive the cable medium kind from a \`CableGrade\`. Twisted-pair categories map to twisted-pair, OM3/4/5 → multi-mode fiber, OS1/2 → single-mode fiber, DAC and AOC are their own mediums.

```
mediumFromGrade(grade: CableGrade | undefined): CableMedium | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `grade` | `CableGrade | undefined` | No additional description. | `—` |

## Returns

```
CableMedium | undefined
```

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