minishouyin/node_modules/antd/lib/_util/hooks/useMultipleSelect.d.ts

7 lines
401 B
TypeScript
Raw Normal View History

2025-11-12 11:35:57 +08:00
export type PrevSelectedIndex = null | number;
/**
* @title multipleSelect hooks
* @description multipleSelect by hold down shift key
*/
export declare const useMultipleSelect: <T, K>(getKey: (item: T, index: number, array: T[]) => K) => readonly [(currentSelectedIndex: number, data: T[], selectedKeys: Set<K>) => K[], import("react").Dispatch<import("react").SetStateAction<PrevSelectedIndex>>];