---
sidebar_label: ConsoleMessage.type
---

# ConsoleMessage.type() method

The type of the console message.

### Signature

```typescript
class ConsoleMessage {
  type(): ConsoleMessageType;
}
```

**Returns:**

[ConsoleMessageType](./puppeteer.consolemessagetype.md)
