Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

Token interface

Signature

typescript
export interface Token 

Import

typescript
import { Token } from '@grafana/ui';

Properties

PropertyTypeDescription
aliasesstring[]
contentstring
nextToken | null
offsets{
start: number;
end: number;
}
prevToken | null
typesstring[]

aliases property

Signature

typescript
aliases: string[];

content property

Signature

typescript
content: string;

next property

Signature

typescript
next?: Token | null;

offsets property

Signature

typescript
offsets?: {
        start: number;
        end: number;
    };

prev property

Signature

typescript
prev?: Token | null;

types property

Signature

typescript
types: string[];