An interface for a text token, such as a word, keyword, or variable.

interface IToken {
    offset: number;
    type?: string;
    value: string;
}

Properties

Properties

offset: number

The offset of the token in the code editor.

type?: string

An optional type for the token.

value: string

The value of the token.