useOptions.d.ts 454 B

123456789
  1. import * as React from 'react';
  2. import type { DefaultOptionType } from '..';
  3. import type { InternalFieldNames, SingleValueType } from '../Cascader';
  4. import { type GetEntities } from './useEntities';
  5. export default function useOptions(mergedFieldNames: InternalFieldNames, options?: DefaultOptionType[]): [
  6. mergedOptions: DefaultOptionType[],
  7. getPathKeyEntities: GetEntities,
  8. getValueByKeyPath: (pathKeys: React.Key[]) => SingleValueType[]
  9. ];