ze-react-component-library
Version:
ZeroETP React Component Library
14 lines (13 loc) • 605 B
TypeScript
import React from "react";
import { SchemaType } from "zeroetp-api-sdk";
import { ZESchemaFormProps } from "../ZESchemaForm/ZESchemaForm.types";
export declare type SchemaEasyEditorProps = {
onSubmit: (schema: SchemaType) => Promise<any>;
initialSchema?: any;
editingRecord?: any;
schemas?: any[];
} & ZESchemaFormProps;
export declare const formValueToSchema: (value: any, initialSchema?: SchemaType) => any;
export declare const schemaToFormValue: (schema: SchemaType | undefined) => any;
declare const SchemaEasyEditor: React.FC<SchemaEasyEditorProps>;
export default SchemaEasyEditor;