From 59d625a6ed0cce1cb986a51ab04e74f4e9b26694 Mon Sep 17 00:00:00 2001 From: yoyo837 Date: Sat, 6 May 2023 15:26:36 +0800 Subject: [PATCH] feat: export INTERNAL_HOOKS directly --- src/Table.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Table.tsx b/src/Table.tsx index b334bbb01..f9cbcd84d 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -817,6 +817,7 @@ export function genTable(shouldTriggerRender?: CompareProps): type const ImmutableTable = genTable(); type ImmutableTableType = typeof ImmutableTable & { EXPAND_COLUMN: typeof EXPAND_COLUMN; + INTERNAL_HOOKS: typeof INTERNAL_HOOKS; Column: typeof Column; ColumnGroup: typeof ColumnGroup; Summary: typeof FooterComponents; @@ -824,6 +825,8 @@ type ImmutableTableType = typeof ImmutableTable & { (ImmutableTable as ImmutableTableType).EXPAND_COLUMN = EXPAND_COLUMN; +(ImmutableTable as ImmutableTableType).INTERNAL_HOOKS = INTERNAL_HOOKS; + (ImmutableTable as ImmutableTableType).Column = Column; (ImmutableTable as ImmutableTableType).ColumnGroup = ColumnGroup;