Skip to content

Commit

Permalink
Add metadata to ArboretumPageBaseT
Browse files Browse the repository at this point in the history
  • Loading branch information
Dacjan committed Aug 28, 2024
1 parent bb03a3a commit 0d79060
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/arboretum-client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CachedDataT, SysIdT } from "./impl/arboretum-client.impl";
import { CachedDataT, MetadataT, SysIdT } from "./impl/arboretum-client.impl";
import { Either } from "./utils/fp-utils";
import {
ContentTypeT,
Expand Down Expand Up @@ -114,6 +114,7 @@ type ArboretumPageBaseT = {
path: string;
title?: string;
cmaOnlyStatus?: StatusT;
metadata?: MetadataT;
};

export type ArboretumRedirectT = ArboretumPageBaseT & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export const redirectToArboretumPage =
path: redirect.path,
cmaOnlyStatus: redirect.sys.cmaOnlyStatus,
title: redirect.title,
metadata: redirect.metadata
});
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ export const toArboretumPageWithMissingData =
children,
ancestors,
additionalFields: page.additionalFields,
metadata: page.metadata
});

0 comments on commit 0d79060

Please sign in to comment.