@npmjs_tdsoftware/subidentity
Version:
This package provides functionality to fetch identities and search identities by address or any identity field from any Substrate chain implementing the identities pallet. It was developed for use in SubIdentity, a Substrate identity directory, and contai
9 lines (8 loc) • 365 B
TypeScript
import { Page } from "./types/Page";
/**
* @param allItems list of items to be paginated
* @param page requested page number
* @param limit number of items per page
*/
export declare function _paginate(allItems: any[], page: number, limit: number): Promise<Page<any>>;
export declare function _validatePaginationInput(page: number, limit: number): boolean;