UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

22 lines 925 B
import { ReactNode } from 'react'; import { CreateControllerProps, CreateControllerResult } from './useCreateController'; import { RaRecord } from '../../types'; /** * Render prop version of the useCreateController hook * * @see useCreateController * @example * * const CreateView = () => <div>...</div> * const MyCreate = props => ( * <CreateController {...props}> * {controllerProps => <CreateView {...controllerProps} {...props} />} * </CreateController> * ); */ export declare const CreateController: <RecordType extends Omit<RaRecord<import("../../types").Identifier>, "id"> = any, MutationOptionsError = Error>({ children, ...props }: { children: (params: CreateControllerResult<RecordType>) => ReactNode; } & CreateControllerProps<RecordType, MutationOptionsError, RecordType & { id: import("../../types").Identifier; }>) => ReactNode; //# sourceMappingURL=CreateController.d.ts.map