Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
Signed-off-by: brookewp <[email protected]>
  • Loading branch information
brookewp committed Feb 25, 2025
1 parent 7a5ef2b commit b8b23b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/blocks/remote-data-container/hooks/useRemoteData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ interface UseRemoteData {
error?: Error;
fetch: ( queryInput: RemoteDataQueryInput ) => Promise< void >;
hasNextPage?: boolean;
hasPreviousPage: boolean;
loading: boolean;
page: number;
perPage?: number;
Expand Down
4 changes: 2 additions & 2 deletions types/remote-data.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ interface InnerBlockContext {
}

interface RemoteDataPagination {
cursorNext?: string;
cursorPrevious?: string;
cursorNext?: string;
cursorPrevious?: string;
hasNextPage?: boolean;
totalItems?: number;
}
Expand Down

0 comments on commit b8b23b2

Please sign in to comment.