Token
Represents a code token as a tuple of token type index and token value.[0](number): Index of the token type (see TokenType)[1](string): The actual text content of the token
TokenType
Union type of all possible token type strings."identifier"- Variable names, function names"keyword"- JavaScript keywords (if, const, function, etc.)"string"- String literals"class"- Class names, numbers, null"property"- Object properties"entity"- Special entities"jsxliterals"- JSX literal values"sign"- Operators and punctuation"comment"- Comments"break"- Line breaks"space"- Whitespace
Child
Represents a single token element in the rendered output.Children
Array of child token elements.Line
Represents a complete line of code with all its tokens.Modifier
String literal type for line modifiers."highlighted-line"- Highlights the line"added-line"- Marks the line as added (green background)"removed-line"- Marks the line as removed (red background)