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 • 611 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<import("../../types").Identifier> = RaRecord<import("../../types").Identifier>>() => CreateControllerResult<RecordType>;
//# sourceMappingURL=useCreateContext.d.ts.map