aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/pages.ts
blob: fa4d05dc6974cd73aea92ba4befbad07019479e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export type Page = {
  content: string;
  date: string;
  intro: string;
  modified: string;
  title: string;
};

export type RawPage = {
  contentParts: {
    afterMore: string;
    beforeMore: string;
  };
  date: string;
  modified: string;
  title: string;
};

export type PageResponse = {
  pageBy: RawPage;
};

export type FetchPageByUriReturn = (uri: string) => Promise<RawPage>;

export type GetCVPageReturn = () => Promise<Page>;

export type PageProps = {
  page: Page;
};