Skip to content

Commit

Permalink
add type to allData in getItems
Browse files Browse the repository at this point in the history
  • Loading branch information
mosesintech committed Mar 22, 2024
1 parent 8b67a0f commit eca8227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/api/get-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type Items = {
}[];

export async function getItems({ restBase = "pages" }): Promise<Items> {
let allData = [];
let allData: Items = [];
let page = 1;
let morePagesAvailable = true;

Expand Down

0 comments on commit eca8227

Please sign in to comment.