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

9 lines (8 loc) 289 B
import type { ArrayValue } from '../../types'; /** * Parses input value to array format. * @param value - Value to parse * @returns Parsed array or empty array if not an array * @typeParam T - Type of array elements */ export declare const parseArray: (value: unknown) => ArrayValue;