UNPKG

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 814 B
import { ReactNode } from 'react'; import { EditControllerProps, EditControllerResult } from './useEditController'; import { RaRecord } from '../../types'; /** * Render prop version of the useEditController hook * * @see useEditController * @example * * const EditView = () => <div>...</div> * const MyEdit = props => ( * <EditController {...props}> * {controllerProps => <EditView {...controllerProps} {...props} />} * </EditController> * ); */ export declare const EditController: <RecordType extends RaRecord<import("../../types").Identifier> = any, ErrorType = Error>({ children, ...props }: { children: (params: EditControllerResult<RecordType, ErrorType>) => ReactNode; } & EditControllerProps<RecordType, ErrorType>) => ReactNode; //# sourceMappingURL=EditController.d.ts.map