UNPKG

568 BTypeScriptView Raw
1import type { ExpandableConfig, ExpandableType, GetRowKey, Key, RenderExpandIcon, TriggerEventHandler } from '../interface';
2import type { TableProps } from '../Table';
3export default function useExpand<RecordType>(props: TableProps<RecordType>, mergedData: readonly RecordType[], getRowKey: GetRowKey<RecordType>): [
4 expandableConfig: ExpandableConfig<RecordType>,
5 expandableType: ExpandableType,
6 expandedKeys: Set<Key>,
7 expandIcon: RenderExpandIcon<RecordType>,
8 childrenColumnName: string,
9 onTriggerExpand: TriggerEventHandler<RecordType>
10];