UNPKG

rc-cascader

Version:
5 lines (4 loc) 576 B
/// <reference types="react" /> import type { InternalValueType, ShowCheckedStrategy, SingleValueType } from '../Cascader'; import type { GetEntities } from './useEntities'; 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;