[Home](./index.md) > [puppeteer](./puppeteer.md) > [ConsoleMessage](./puppeteer.consolemessage.md) > [type](./puppeteer.consolemessage.type.md)
## ConsoleMessage.type() method
Signature:
```typescript
type(): ConsoleMessageType;
```
Returns:
[ConsoleMessageType](./puppeteer.consolemessagetype.md)
The type of the console message.