@refinedev/core
Version:
Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.
13 lines • 601 B
Source Map (JSON)
import type { IResourceItem } from "../../../contexts/resource/types";
import type { Action } from "../../../contexts/router/types";
export type ResourceActionRoute = {
action: Action;
resource: IResourceItem;
route: string;
};
/**
* This function returns all the routes for available actions for a resource.
* - It will return an array of objects with the action, the resource and the route
*/
export declare const getActionRoutesFromResource: (resource: IResourceItem, resources: IResourceItem[]) => ResourceActionRoute[];
//# sourceMappingURL=get-action-routes-from-resource.d.ts.map