# specDeviceType

Canonical: https://docs.shumoku.dev/ja/library/api/specDeviceType
Language: ja

@shumoku/core · 0.4.0 · function

# specDeviceType

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/types.ts#L393)

APIの説明は英語のcanonical sourceを表示しています。

Extract DeviceType from a spec (hardware and compute only).

```
specDeviceType(spec: NodeSpec | undefined): DeviceType | undefined
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `spec` | `NodeSpec | undefined` | 追加説明はありません。 | `—` |

## 戻り値

```
DeviceType | undefined
```

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