synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
14 lines • 635 B
TypeScript
import RJSFForm from '@rjsf/core';
import { GenericObjectType, RJSFSchema } from '@rjsf/utils';
import { JSONSchema7Definition } from 'json-schema';
import { Ref } from 'react';
export type JSONArrayEditorProps<T = unknown> = {
value?: T[];
arrayItemDefinition?: JSONSchema7Definition;
onChange: (newValue: T[]) => void;
onSubmit: (formData: T[]) => void;
formRef?: Ref<RJSFForm<T, RJSFSchema, GenericObjectType>>;
};
declare function JSONArrayEditor<T = unknown>(props: JSONArrayEditorProps<T>): import("react/jsx-runtime").JSX.Element;
export default JSONArrayEditor;
//# sourceMappingURL=JSONArrayEditor.d.ts.map