diff --git a/packages/hooks/src/use-table.ts b/packages/hooks/src/use-table.ts
index 2de1c0ef..6c2ae07c 100644
--- a/packages/hooks/src/use-table.ts
+++ b/packages/hooks/src/use-table.ts
@@ -57,12 +57,6 @@ export type TableConfig = {
* @default true
*/
immediate?: boolean;
- /**
- * whether to display the total items count
- *
- * @default false
- */
- showTotal?: boolean;
};
export default function useHookTable(config: TableConfig) {
diff --git a/src/typings/naive-ui.d.ts b/src/typings/naive-ui.d.ts
index 6bd5f4cf..cde80bab 100644
--- a/src/typings/naive-ui.d.ts
+++ b/src/typings/naive-ui.d.ts
@@ -42,6 +42,13 @@ declare namespace NaiveUI {
type NaiveTableConfig = Pick<
import('@sa/hooks').TableConfig, TableColumn>>>,
- 'apiFn' | 'apiParams' | 'columns' | 'immediate' | 'showTotal'
- >;
+ 'apiFn' | 'apiParams' | 'columns' | 'immediate'
+ > & {
+ /**
+ * whether to display the total items count
+ *
+ * @default false
+ */
+ showTotal?: boolean;
+ };
}