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 • 671 B
TypeScript
import type { ResourceOptions } from '../types';
import type { ResourceDefinitions } from './ResourceDefinitionContext';
/**
* Get the definition of the all resources
*
* @example
*
* const definitions = useResourceDefinitions();
* console.log(definitions.posts);
* // {
* // name: 'posts',
* // hasList: true,
* // hasEdit: true,
* // hasShow: true,
* // hasCreate: true,
* // options: {},
* // icon: PostIcon,
* // recordRepresentation: 'title',
* // }
*/
export declare const useResourceDefinitions: <OptionsType extends ResourceOptions = any>() => ResourceDefinitions<OptionsType>;
//# sourceMappingURL=useResourceDefinitions.d.ts.map