UNPKG

graphql-mocks

Version:
17 lines (16 loc) 386 B
export declare type Edge<T> = { node: T; cursor: string; }; export declare type CursorForNode<T> = (node: T) => string; export declare type RelayPaginationResult<T = unknown> = { edges: { node: T; }[]; pageInfo: { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }; };