--- sidebar_label: ConsoleMessage.type --- # ConsoleMessage.type() method **Signature:** ```typescript class ConsoleMessage {type(): ConsoleMessageType;} ``` **Returns:** [ConsoleMessageType](./puppeteer.consolemessagetype.md) The type of the console message.