# Type

The type of bike you are using

{% tabs %}
{% tab title="Typescript" %}

```typescript
const onBikeTypeChange = (value: BikeType, timestamp?: Date) => {
    console.log(value, timestamp);
};

COBI.bike.type.read(onBikeTypeChange);
COBI.bike.type.subscribe(onBikeTypeChange);
COBI.bike.type.unsubscribe(onBikeTypeChange);
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
const onBikeTypeChange = (value, timestamp) => {
    console.log(value, timestamp);
};

COBI.bike.type.read(onBikeTypeChange);
COBI.bike.type.subscribe(onBikeTypeChange);
COBI.bike.type.unsubscribe(onBikeTypeChange);
```

{% endtab %}
{% endtabs %}

{% content-ref url="../../entities/biketype" %}
[biketype](https://sryvkver.gitbook.io/cobi.bike/entities/biketype)
{% endcontent-ref %}

<details>

<summary>Example Response</summary>

```json
"CITY"
```

</details>
