Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/pages/reference/20-pages.rocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ type PagePaginationConfig = {
};

type PagePaginationDeclaration =
| PagePaginationConfig
| ((pageData: PageData) => PagePaginationConfig);
PagePaginationConfig | ((pageData: PageData) => PagePaginationConfig);

type JavaScriptPageModule = {
pagination?: PagePaginationDeclaration;
Expand Down
2 changes: 1 addition & 1 deletion exports/layouts/_atlas.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
body {
background: blue !important;
}
}
6 changes: 2 additions & 4 deletions exports/types/rocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ export type PagePaginationConfig = {
};

export type PagePaginationDeclaration =
| PagePaginationConfig
| ((pageData: PageData) => PagePaginationConfig);
PagePaginationConfig | ((pageData: PageData) => PagePaginationConfig);

export type PagePagination = {
items: PageCollectionEntry[];
Expand Down Expand Up @@ -441,8 +440,7 @@ export type PageFeedDeclaration = PageFeedConfig | ((pageData: PageData) => Page
export type PageStaticParams = Record<string, string>;

export type PageStaticParamsDeclaration =
| PageStaticParams[]
| ((pageData: PageData) => PageStaticParams[]);
PageStaticParams[] | ((pageData: PageData) => PageStaticParams[]);

export type PageRegistrySortDirection = 'asc' | 'desc';

Expand Down
Loading
Loading