@jigoooo/shared-ui
Version:
A reusable React component library and design system with TypeScript support, built on Vite for seamless integration and optimized performance.
8 lines (7 loc) • 377 B
TypeScript
import { TDataWithIndex } from './table-type.ts';
export declare function useTableData<TData extends TDataWithIndex>(tableDataList: TData[]): {
dataList: TData[];
setDataList: import('react').Dispatch<import('react').SetStateAction<TData[]>>;
handelDataList: (dataIndex: number, key: string, value: any) => void;
deleteDataList: (dataIndex: number) => void;
};