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