ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
17 lines • 772 B
TypeScript
import * as React from 'react';
import { ResourceProps } from '../types';
export declare const Resource: {
(props: ResourceProps): React.JSX.Element;
raName: string;
registerResource({ create, edit, icon, list, name, options, show, recordRepresentation, hasCreate, hasEdit, hasShow, }: ResourceProps): {
name: string;
options: import("../types").ResourceOptions | undefined;
hasList: boolean;
hasCreate: boolean;
hasEdit: boolean;
hasShow: boolean;
icon: React.ComponentType<any> | undefined;
recordRepresentation: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | import("../types").RecordToStringFunction | undefined;
};
};
//# sourceMappingURL=Resource.d.ts.map