UNPKG

@zeplin/extension-model

Version:

Models exposed to Zeplin extensions

28 lines (27 loc) 788 B
import { Variable } from "./variable.js"; export interface VariableGroupData { name: string; variables: any[]; } /** * An interface that represents a variable group. */ export declare class VariableGroup { /** * Name of the variable group. */ name: string; /** * Variables of the variable group. */ variables: Variable[]; static get ALLOWED_FIELDS(): string[]; constructor(variableGroupData: VariableGroupData, isDefault?: boolean, variableBySourceId?: Record<string, any>, platform?: string); /** * Creates a VariableGroup instance from a JSON string * * @param json JSON string representing a variable group * @returns A new VariableGroup instance */ static fromJSON(json: string): VariableGroup; }