9 lines
433 B
TypeScript
9 lines
433 B
TypeScript
import type { DefaultOptionType } from '..';
|
|
import type { InternalFieldNames, SingleValueType, LegacyKey } from '../Cascader';
|
|
import { type GetEntities } from './useEntities';
|
|
export default function useOptions(mergedFieldNames: InternalFieldNames, options?: DefaultOptionType[]): [
|
|
mergedOptions: DefaultOptionType[],
|
|
getPathKeyEntities: GetEntities,
|
|
getValueByKeyPath: (pathKeys: LegacyKey[]) => SingleValueType[]
|
|
];
|