valueUtil.d.ts 615 B

12345678910111213
  1. import type { Key, DataNode, FieldNames } from '../interface';
  2. import type { DefaultOptionType, InternalFieldName } from '../TreeSelect';
  3. export declare function toArray<T>(value: T | T[]): T[];
  4. export declare function fillFieldNames(fieldNames?: FieldNames): {
  5. _title: string[];
  6. value: string;
  7. key: string;
  8. children: string;
  9. };
  10. export declare function isCheckDisabled(node: DataNode): boolean;
  11. /** Loop fetch all the keys exist in the tree */
  12. export declare function getAllKeys(treeData: DefaultOptionType[], fieldNames: InternalFieldName): Key[];
  13. export declare function isNil(val: any): boolean;