11 lines
539 B
TypeScript
11 lines
539 B
TypeScript
import type { DefaultOptionType, InternalFieldNames } from '../Cascader';
|
|
import type { DataEntity } from 'rc-tree/lib/interface';
|
|
export interface OptionsInfo {
|
|
keyEntities: Record<string, DataEntity>;
|
|
pathKeyEntities: Record<string, DataEntity>;
|
|
}
|
|
export type GetEntities = () => OptionsInfo['pathKeyEntities'];
|
|
/** Lazy parse options data into conduct-able info to avoid perf issue in single mode */
|
|
declare const _default: (options: DefaultOptionType[], fieldNames: InternalFieldNames) => GetEntities;
|
|
export default _default;
|