UNPKG

@canard/schema-form

Version:

React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components

11 lines (10 loc) 522 B
import type { Dictionary } from '../../../@aileron/declare'; import type { AllowedValue } from '../../../types'; export type ConditionDictionary = Dictionary<AllowedValue | AllowedValue[]>; /** * Generates executable code strings from conditions. * @param condition - Condition dictionary * @param inverse - Whether it's an inverse condition * @param operations - Array to store results */ export declare const convertExpression: (condition: ConditionDictionary, inverse?: boolean, source?: string) => string | null;