refactor(projects): finish refactor useTable

This commit is contained in:
Soybean
2024-03-19 01:01:00 +08:00
parent c3efa1b6e0
commit 8630175a3f
6 changed files with 23 additions and 40 deletions

View File

@ -16,7 +16,7 @@ declare namespace Api {
}
/** common params of paginating query list data */
interface PaginatingQueryRecord<T extends NonNullable<unknown>> extends PaginatingCommonParams {
interface PaginatingQueryRecord<T = any> extends PaginatingCommonParams {
records: T[];
}
@ -29,7 +29,7 @@ declare namespace Api {
type EnableStatus = '1' | '2';
/** common record */
type CommonRecord<T extends NonNullable<unknown>> = {
type CommonRecord<T = any> = {
/** record id */
id: number;
/** record creator */