Skip to content

Commit 276ea7f

Browse files
committed
fix(types): fix data type of useHookTable
1 parent 96c1044 commit 276ea7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hooks/src/use-table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function useHookTable<A extends ApiFn, T, C>(config: TableConfig<
7070

7171
const allColumns = ref(config.columns()) as Ref<C[]>;
7272

73-
const data: Ref<T[]> = ref([]);
73+
const data: Ref<TableDataWithIndex<T>[]> = ref([]);
7474

7575
const columnChecks: Ref<TableColumnCheck[]> = ref(getColumnChecks(config.columns()));
7676

0 commit comments

Comments
 (0)