@zeplin/extension-model
Version:
Models exposed to Zeplin extensions
41 lines (40 loc) • 929 B
TypeScript
import { Color } from "./color.js";
/**
* Interface for spacing token data
*/
export interface SpacingTokenData {
_id: string | number;
token: string;
value: number;
color: any;
}
/**
* An interface that represents a spacing token.
*/
export declare class SpacingToken {
/**
* Internal ID of the spacing token
*/
_id: string | number;
/**
* Name used to refer to the spacing token.
*/
name: string;
/**
* Value of the spacing token.
*/
value: number;
/**
* Color used to represent the spacing token.
*/
color: Color;
static get ALLOWED_FIELDS(): string[];
constructor(data: SpacingTokenData);
/**
* Creates a SpacingToken instance from a JSON string
*
* @param json JSON string representing a spacing token
* @returns A new SpacingToken instance
*/
static fromJSON(json: string): SpacingToken;
}