We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80708b1 commit cde86eaCopy full SHA for cde86ea
src/interfaces/Cursor.ts
@@ -1,5 +1,6 @@
1
export const start = undefined;
2
3
-type Cursor = string | typeof start | null;
+type Cursor = string | typeof start;
4
+
5
6
export default Cursor;
src/interfaces/PaginatedResponse.ts
@@ -1,11 +1,10 @@
-import Cursor from './Cursor';
import Item from './Item';
export interface PaginationMetadata {
readonly hasAfter: boolean;
readonly hasBefore: boolean;
7
- readonly after: Cursor;
8
- readonly before: Cursor;
+ readonly after: string | null;
+ readonly before: string | null;
9
readonly totalCount: number;
10
}
11
export default interface PaginatedResponse<I extends Item> {
0 commit comments