Skip to content

Commit

Permalink
modify the return type of the reviews function
Browse files Browse the repository at this point in the history
  • Loading branch information
ElhoussinRazouki committed Oct 2, 2023
1 parent d0e347c commit 6cc68a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,13 @@ export interface IFnReviewsOptions extends IOptions {
}


export interface IReviewsResult{
reviews : IReviewsItem[]
nextPaginationToken? : string
}

export interface IFnReviews {
(options: IFnReviewsOptions): Promise<IReviewsItem[]>
(options: IFnReviewsOptions): Promise<IReviewsResult>
}

// -- similar
Expand Down

0 comments on commit 6cc68a9

Please sign in to comment.