UNPKG

@cmk/fe_utils

Version:
33 lines (31 loc) 1.06 kB
import { Dispatch, SetStateAction } from 'react'; type EditPropertyType = { path: (string | number)[]; type: 'name' | 'value'; tempValue: string | number | boolean | Record<string, unknown>; }; export type JsonObjectFieldProps = { value: Record<string, unknown>; _path?: (string | number)[]; editing?: EditPropertyType | null; setEditing?: Dispatch<SetStateAction<EditPropertyType | null>>; onChange: (value: Record<string, unknown>, e: { target: { name: string; }; }) => void; keysDict?: Record<string, string>; name?: string; disabled?: boolean; _collapsedPaths?: string[]; _setCollapsedPaths?: Dispatch<SetStateAction<string[]>>; startCollapsed?: boolean; startObjectsCollapsed?: boolean; _index?: number; hideLineNumbers?: boolean; itemsWindowEndIndex?: number; itemsWindowStartIndex?: number; fontSize?: number; }; export declare const JsonObjectField: (props: JsonObjectFieldProps) => import("react/jsx-runtime").JSX.Element | null; export {};