Cm5Mode › getType
Unofficial
Returns the token type of the current state, for modes that expose one.
Signature:
getType(state: T): null | string
Parameters:
| Parameter | Type | Description |
|---|
| state | T | The current parser state. |
Returns: null | string — The token type, or null when the state has none.