@mollie/api-client
Version:
Official Mollie API client for Node
15 lines (14 loc) • 487 B
TypeScript
import type Maybe from '../../types/Maybe';
import type Nullable from '../../types/Nullable';
import { type Links, type Url } from '../global';
export default interface Page<T> extends Array<T> {
links: PageLinks;
nextPageCursor: Maybe<string>;
previousPageCursor: Maybe<string>;
nextPage: Maybe<() => Promise<Page<T>>>;
previousPage: Maybe<() => Promise<Page<T>>>;
}
export interface PageLinks extends Links {
next: Nullable<Url>;
previous: Nullable<Url>;
}