ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
20 lines • 703 B
TypeScript
import { FieldValues, UseFieldArrayReturn } from 'react-hook-form';
import { InputProps } from './useInput';
interface StandardInput {
inputProps: Partial<InputProps> & {
source: string;
};
isArrayInput?: undefined;
fieldArrayInputControl?: undefined;
}
interface ArrayInput {
inputProps: Partial<InputProps> & {
source: string;
};
isArrayInput: true;
fieldArrayInputControl: UseFieldArrayReturn<FieldValues, string, 'id'>;
}
type Props = StandardInput | ArrayInput;
export declare const useApplyInputDefaultValues: ({ inputProps, isArrayInput, fieldArrayInputControl, }: Props) => void;
export {};
//# sourceMappingURL=useApplyInputDefaultValues.d.ts.map