UNPKG

@farris/renderer

Version:

Render schema to web page with farris ui.

28 lines (27 loc) 841 B
import { ConfigDependency } from "../config"; export declare enum ConfigType { Expression = "Expression", Variable = "Variable", StateMachine = "StateMachine" } export interface StandardPropertyConfig { type: ConfigType; } export interface ExpressionConfig extends StandardPropertyConfig { type: ConfigType.Expression; expressionId: string; } export interface VariableConfig extends StandardPropertyConfig { type: ConfigType.Variable; path: string; fullPath: string; field: string; } export interface StateMachineConfig extends StandardPropertyConfig { type: ConfigType.StateMachine; field: string; status: boolean; } export interface ConfigDependencyResolver { resolve(config: string | boolean | StandardPropertyConfig, viewSchema?: Record<string, any>): ConfigDependency[] | null; }