ra-core
Version: 
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
13 lines • 543 B
TypeScript
import { RaRecord } from '../../types';
import { CreateControllerResult } from './useCreateController';
/**
 * Hook to read the create controller props from the CreateContext.
 *
 * Used within a <CreateContextProvider> (e.g. as a descendent of <Create>).
 *
 * @returns {CreateControllerResult} create controller props
 *
 * @see useCreateController for how it is filled
 */
export declare const useCreateContext: <RecordType extends RaRecord = RaRecord>() => CreateControllerResult<RecordType>;
//# sourceMappingURL=useCreateContext.d.ts.map