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 cd14ea1 commit 80708b1Copy full SHA for 80708b1
src/interfaces/Cursor.ts
@@ -1,5 +1,5 @@
1
export const start = undefined;
2
3
-type Cursor = string | typeof start;
+type Cursor = string | typeof start | null;
4
5
export default Cursor;
src/interfaces/PaginatedResponse.ts
@@ -1,10 +1,11 @@
+import Cursor from './Cursor';
import Item from './Item';
export interface PaginationMetadata {
readonly hasAfter: boolean;
6
readonly hasBefore: boolean;
- readonly after: string | null;
7
- readonly before: string | null;
+ readonly after: Cursor;
8
+ readonly before: Cursor;
9
readonly totalCount: number;
10
}
11
export default interface PaginatedResponse<I extends Item> {
0 commit comments