diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-20 16:23:48 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-20 16:23:48 +0100 |
| commit | 8966fde6ff520cfbe74c031c8b2e3a66d298b172 (patch) | |
| tree | 9144e961db587adb22bff88a23c6881ea7a935f9 /src/ts | |
| parent | f5ba1046b13acd239c472e361f345902937662fb (diff) | |
chore: add single project view
Diffstat (limited to 'src/ts')
| -rw-r--r-- | src/ts/types/app.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts index 6f9bbce..b2a5cd6 100644 --- a/src/ts/types/app.ts +++ b/src/ts/types/app.ts @@ -1,6 +1,6 @@ import { NextPage } from 'next'; import { AppProps } from 'next/app'; -import { ReactElement, ReactNode } from 'react'; +import { ComponentType, ReactElement, ReactNode } from 'react'; import { PostBy } from './articles'; import { AllPostsSlug, RawPostsList } from './blog'; import { CommentData, CreateComment } from './comments'; @@ -89,7 +89,7 @@ export type Meta = { updatedOn: string; }; -export type ProjectMeta = Meta & { +export type ProjectMeta = Omit<Meta, 'title'> & { license: string; repos?: { github?: string; @@ -109,6 +109,15 @@ export type Project = { intro: string; meta: ProjectMeta; slug: string; + title: string; + seo: { + title: string; + description: string; + }; +}; + +export type ProjectProps = { + project: Project; }; export type Slug = { |
