diff --git a/src/blocks/remote-data-container/hooks/useRemoteData.ts b/src/blocks/remote-data-container/hooks/useRemoteData.ts index d05ca54f..5a2b5da9 100644 --- a/src/blocks/remote-data-container/hooks/useRemoteData.ts +++ b/src/blocks/remote-data-container/hooks/useRemoteData.ts @@ -53,6 +53,7 @@ interface UseRemoteData { error?: Error; fetch: ( queryInput: RemoteDataQueryInput ) => Promise< void >; hasNextPage?: boolean; + hasPreviousPage: boolean; loading: boolean; page: number; perPage?: number; diff --git a/types/remote-data.d.ts b/types/remote-data.d.ts index 9aae9e24..1fdd288b 100644 --- a/types/remote-data.d.ts +++ b/types/remote-data.d.ts @@ -3,8 +3,8 @@ interface InnerBlockContext { } interface RemoteDataPagination { - cursorNext?: string; - cursorPrevious?: string; + cursorNext?: string; + cursorPrevious?: string; hasNextPage?: boolean; totalItems?: number; }