UNPKG

@arteneo/forge

Version:
20 lines (19 loc) 869 B
import React from "react"; import { AxiosResponse } from "axios"; import { SelectProps } from "../../../components/Form/fields/Select"; import OptionsType from "../../../components/Form/definitions/OptionsType"; import FieldEndpointType from "../../../components/Form/definitions/FieldEndpointType"; interface SelectApiSpecificProps { endpoint: FieldEndpointType; processResponse?: (response: AxiosResponse) => OptionsType; loadUseEffectDependency?: any; } type SelectApiProps = SelectApiSpecificProps & Omit<SelectProps, "options">; declare const SelectApi: { ({ endpoint, processResponse, loadUseEffectDependency, disableTranslateOption, ...selectProps }: SelectApiProps): React.JSX.Element; defaultProps: { transformInitialValue: (value: any) => any; }; }; export default SelectApi; export { SelectApiProps, SelectApiSpecificProps };