@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 • 407 B
Source Map (JSON)
import type { IResourceItem } from "../../../contexts/resource/types";
export type Tree = {
item: IResourceItem;
children: {
[key: string]: Tree;
};
};
export type FlatTreeItem = IResourceItem & {
key: string;
children: FlatTreeItem[];
};
export declare const createTree: (resources: IResourceItem[], legacy?: boolean) => FlatTreeItem[];
//# sourceMappingURL=create-tree.d.ts.map