PromoCursed/node_modules/rc-cascader/es/hooks/useOptions.d.ts
2024-08-20 23:25:37 +04:00

10 lines
454 B
TypeScript

import * as React from 'react';
import type { DefaultOptionType } from '..';
import type { InternalFieldNames, SingleValueType } from '../Cascader';
import { type GetEntities } from './useEntities';
export default function useOptions(mergedFieldNames: InternalFieldNames, options?: DefaultOptionType[]): [
mergedOptions: DefaultOptionType[],
getPathKeyEntities: GetEntities,
getValueByKeyPath: (pathKeys: React.Key[]) => SingleValueType[]
];