Page Type — astro Architecture
Architecture documentation for the Page type/interface in common.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD cbf7ff1c_12da_dc52_f280_d6e1e51ae594["Page"] 669e29cb_6284_b440_c979_7aeecf0609ce["common.ts"] cbf7ff1c_12da_dc52_f280_d6e1e51ae594 -->|defined in| 669e29cb_6284_b440_c979_7aeecf0609ce style cbf7ff1c_12da_dc52_f280_d6e1e51ae594 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/types/public/common.ts lines 52–80
export interface Page<T = any> {
/** result */
data: T[];
/** metadata */
/** the count of the first item on the page, starting from 0 */
start: number;
/** the count of the last item on the page, starting from 0 */
end: number;
/** total number of results */
total: number;
/** the current page number, starting from 1 */
currentPage: number;
/** number of items per page (default: 10) */
size: number;
/** number of last page */
lastPage: number;
url: {
/** url of the current page */
current: string;
/** url of the previous page (if there is one) */
prev: string | undefined;
/** url of the next page (if there is one) */
next: string | undefined;
/** url of the first page (if the current page is not the first page) */
first: string | undefined;
/** url of the last page (if the current page is not the last page) */
last: string | undefined;
};
}
Defined In
Source
Frequently Asked Questions
What is the Page type?
Page is a type/interface in the astro codebase, defined in packages/astro/src/types/public/common.ts.
Where is Page defined?
Page is defined in packages/astro/src/types/public/common.ts at line 52.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free