@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) • 410 B
TypeScript
import type { SchemaNode } from '../../../../../core';
/**
* Finds a node in the AbstractNode tree that matches the given path.
* @param target - Root node to start searching from
* @param segments - Array of path segments to find (e.g. ["root", "child", "0", "grandchild"])
* @returns Found node or null
*/
export declare const find: (target: SchemaNode, segments: string[] | null) => SchemaNode | null;