@ahoo-wang/fetcher-wow
Version:
Support for Wow(https://github.com/Ahoo-Wang/Wow) in Fetcher
29 lines • 1.04 kB
TypeScript
/**
* Interface for pagination information.
*
* Page number, starting from 1
* Page size
*/
export interface Pagination {
index: number;
size: number;
}
/**
* Default pagination configuration.
* Page index starts at 1, page size is 10.
*/
export declare const DEFAULT_PAGINATION: Pagination;
/**
* Creates a Pagination object with the provided parameters.
*
* This function is a factory for creating Pagination objects, which represent
* pagination information including page index and page size. It provides default
* values for optional properties while allowing customization of index and size.
*
* @param options - The pagination options. Optional.
* @param options.index - The page index, starting from 1. Defaults to DEFAULT_PAGINATION.index.
* @param options.size - The page size. Defaults to DEFAULT_PAGINATION.size.
* @returns A Pagination object with the specified parameters
*/
export declare function pagination({ index, size, }?: Partial<Pagination>): Pagination;
//# sourceMappingURL=pagination.d.ts.map