# specDeviceType

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

@shumoku/core · 0.4.0 · function

# specDeviceType

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

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

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

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `spec` | `NodeSpec | undefined` | No additional description. | `—` |

## Returns

```
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)
