@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) • 299 B
TypeScript
import type { ObjectValue } from '../../types';
/**
* Parses input value to object format.
* @param value - Value to parse
* @returns Parsed object or empty object if not an object
* @typeParam T - Type of object properties
*/
export declare const parseObject: (value: unknown) => ObjectValue;