UNPKG

@quiet-front-end/json-schema-editor-antd

Version:
19 lines (18 loc) 797 B
import React from 'react'; import { JSONSchema7 } from '../types'; type SchemaItemProps = { propertyName?: string; nodeDepth?: number; namePath?: number[]; isArrayItems?: boolean; isRequire?: boolean; schema: JSONSchema7; changeSchema?: (namePath: number[], value: any, propertyName?: string) => void; renameProperty?: (namePath: number[], name: string) => void; removeProperty?: (namePath: number[]) => void; addProperty?: (path: number[], isChild: boolean) => void; updateRequiredProperty?: (namePath: number[], removed: boolean) => void; handleAdvancedSettingClick?: (namePath: number[], schema: JSONSchema7, propertyName?: string) => boolean; }; declare function SchemaItem(props: SchemaItemProps): React.JSX.Element; export default SchemaItem;