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>>;