UNPKG

@scena/react-folder

Version:

<p align="middle" ><img src="https://raw.githubusercontent.com/daybrush/react-folder/master/public/logo.png"/></p> <h2 align="middle">React Folder</h2> <p align="middle"> <a href="https://www.npmjs.com/package/@scena/react-folder" target="_blank"><img src

10 lines (9 loc) 909 B
import { FileInfo, FolderProps } from "./types"; export declare function prefix(...classNames: string[]): string; export declare function getId<T>(idProperty: FolderProps<T>["idProperty"], info: T, index: number, scope: string[]): string; export declare function getName<T>(nameProperty: FolderProps<T>["nameProperty"], info: T, index: number, scope: string[]): string; export declare function getChildren<T>(childrenProperty: FolderProps<T>["childrenProperty"], info: T, scope: string[]): T[]; export declare function getPath<T>(pathProperty: FolderProps<T>["pathProperty"], id: string, scope: string[], info: T, index: number): string[]; export declare function isEqualArray<T>(a: T[], b: T[]): boolean; export declare function findParentFileInfo(fileInfo: FileInfo<any> | null | undefined, pathUrl: string): FileInfo<any> | null; export declare function isArrayContains(arr1: any[], arr2: any[]): boolean;