@refinedev/core
Version:
refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.
8 lines • 482 B
TypeScript
import type { IResourceItem } from "../../../contexts/resource/types";
/**
* Picks the resource based on the provided identifier.
* Identifier fallbacks to `name` if `identifier` is not explicitly provided to the resource.
* If legacy is true, then resource is matched by `route` first and then by `name`.
*/
export declare const pickResource: (identifier?: string, resources?: IResourceItem[], legacy?: boolean) => IResourceItem | undefined;
//# sourceMappingURL=index.d.ts.map