useSelect.d.ts 576 B

1234
  1. /// <reference types="react" />
  2. import type { InternalValueType, ShowCheckedStrategy, SingleValueType } from '../Cascader';
  3. import type { GetEntities } from './useEntities';
  4. export default function useSelect(multiple: boolean, triggerChange: (nextValues: InternalValueType) => void, checkedValues: SingleValueType[], halfCheckedValues: SingleValueType[], missingCheckedValues: SingleValueType[], getPathKeyEntities: GetEntities, getValueByKeyPath: (pathKeys: React.Key[]) => SingleValueType[], showCheckedStrategy?: ShowCheckedStrategy): (valuePath: SingleValueType) => void;