chat quote reader (#3912)
* init chat quote full text reader * linked structure * dataset data linked * optimize code * fix ts build * test finish * delete log * fix * fix ts * fix ts * remove nextId * initial scroll * fix * fix
This commit is contained in:
19
packages/web/common/fetch/type.d.ts
vendored
19
packages/web/common/fetch/type.d.ts
vendored
@@ -11,3 +11,22 @@ type PaginationResponse<T = {}> = {
|
||||
total: number;
|
||||
list: T[];
|
||||
};
|
||||
|
||||
type LinkedPaginationProps<T = {}> = T & {
|
||||
pageSize: number;
|
||||
} & RequireOnlyOne<{
|
||||
initialId: string;
|
||||
nextId: string;
|
||||
prevId: string;
|
||||
}> &
|
||||
RequireOnlyOne<{
|
||||
initialIndex: number;
|
||||
nextIndex: number;
|
||||
prevIndex: number;
|
||||
}>;
|
||||
|
||||
type LinkedListResponse<T = {}> = {
|
||||
list: Array<T & { _id: string; index: number }>;
|
||||
hasMorePrev: boolean;
|
||||
hasMoreNext: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user