diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-15 19:11:59 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-15 19:23:54 +0100 |
| commit | 3760b757f8fd35eafc340a43f7980ab954413f4e (patch) | |
| tree | 3342bd1abbfa72df157d609c510a6207c5949a23 /src/ts | |
| parent | 102121498b45ef221191401f6216260f072f78a9 (diff) | |
chore: create CV view
Diffstat (limited to 'src/ts')
| -rw-r--r-- | src/ts/types/pages.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ts/types/pages.ts b/src/ts/types/pages.ts new file mode 100644 index 0000000..fa4d05d --- /dev/null +++ b/src/ts/types/pages.ts @@ -0,0 +1,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; +}; |
