From 26c93dff9a5678c76dcfd9439550fda500c54c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8F=9C=E7=99=BD=E7=8E=89=E6=B1=A4?= <79054161+Azir-11@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:28:22 +0800 Subject: [PATCH] fix(types): fix the type of TableApiFn (#599) --- src/typings/api.d.ts | 3 +++ src/typings/naive-ui.d.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index bb3d8757e..5a8e25523 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -20,6 +20,9 @@ declare namespace Api { records: T[]; } + /** common search params of table */ + type CommonSearchParams = Pick; + /** * enable status * diff --git a/src/typings/naive-ui.d.ts b/src/typings/naive-ui.d.ts index cde80bab3..d9ffb7789 100644 --- a/src/typings/naive-ui.d.ts +++ b/src/typings/naive-ui.d.ts @@ -26,7 +26,7 @@ declare namespace NaiveUI { type TableColumn = TableColumnWithKey | DataTableSelectionColumn | DataTableExpandColumn; - type TableApiFn = ( + type TableApiFn = ( params: R ) => Promise>>;