UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

29 lines (28 loc) 860 B
import { TokenType, TokenTypeOption } from './token.interface'; export declare class Token { key: string; value: string | number; type: TokenTypeOption; /** * The theme id for which this token is for */ themeId?: string; /** * When a token is copied or imported from another theme it will have a * reference to the original theme id */ referenceThemeId?: string; constructor(token: TokenType); get objectify(): TokenType; get keyValuePair(): { [x: string]: string | number; }; get tokenPath(): string; get tokenReferencePath(): string; get readonlyValue(): string | number; get readonly(): string | number; get stringValue(): string | number; setKey(key: string): void; setValue(value: string | number): void; setType(value: TokenTypeOption): void; }