> For the complete documentation index, see [llms.txt](https://sryvkver.gitbook.io/cobi.bike/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sryvkver.gitbook.io/cobi.bike/namespaces/bike/type.md).

# 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="/pages/MPRb9RucJSVxoM8JkDye" %}
[BikeType](/cobi.bike/entities/biketype.md)
{% endcontent-ref %}

<details>

<summary>Example Response</summary>

```json
"CITY"
```

</details>
