Skip to content

Commit

Permalink
docs: add jsdocs to Paginated
Browse files Browse the repository at this point in the history
Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
  • Loading branch information
danroc and ccharly authored Oct 18, 2024
1 parent 189e7f3 commit b96a9a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/keyring-api/src/utils/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export type Pagination = Infer<typeof PaginationStruct>;
* ```
*/
export type Paginated<Type> = {
/**
* The list of items for this page.
*/
data: Type[];

Check failure on line 58 in packages/keyring-api/src/utils/pagination.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Lint (18.x)

Delete `··`

Check failure on line 58 in packages/keyring-api/src/utils/pagination.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Lint (20.x)

Delete `··`
/**
* Next cursor to iterate over the results if any, will be `null` otherwise.
*/
next: string | null;
};

0 comments on commit b96a9a7

Please sign in to comment.