UNPKG

@arteneo/forge

Version:
17 lines (16 loc) 1.03 kB
import React from "react"; import { AxiosError } from "axios"; import { FormMultiProps } from "../../components/Form/components/FormMulti"; import { FormikValues } from "formik"; import { BatchResultInterface } from "../../contexts/DialogBatch"; import ResultInterface from "../../components/Table/definitions/ResultInterface"; import EndpointType from "../../definitions/EndpointType"; type BatchFormEndpointType = (result: ResultInterface, values: FormikValues) => EndpointType; interface BindDialogBatchFormMultiProps extends Omit<FormMultiProps, "endpoints"> { endpoint: BatchFormEndpointType; resultDenyKey?: string; onSubmitCatchProcessResponse?: (result: ResultInterface, error: AxiosError<any>, values: FormikValues) => BatchResultInterface; } declare const BindDialogBatchFormMulti: ({ endpoint, resultDenyKey, onSubmitCatchProcessResponse, ...props }: BindDialogBatchFormMultiProps) => React.JSX.Element; export default BindDialogBatchFormMulti; export { BatchFormEndpointType, BindDialogBatchFormMultiProps };