diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-23 14:07:02 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-23 16:00:13 +0200 |
| commit | 34e216546151eaf8a0a3cbb0bc8b65dae4c63bf2 (patch) | |
| tree | bff34f8a1dc65f0559ddf851433f242edb092824 /src/ts/types/mdx.ts | |
| parent | 0f8f963ba3eccd7fd94785bf7fb216b6287cec57 (diff) | |
refactor: reduce the number of data transformation
Diffstat (limited to 'src/ts/types/mdx.ts')
| -rw-r--r-- | src/ts/types/mdx.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ts/types/mdx.ts b/src/ts/types/mdx.ts index 6b72f21..16538c1 100644 --- a/src/ts/types/mdx.ts +++ b/src/ts/types/mdx.ts @@ -11,10 +11,7 @@ export type MDXPageMeta = Pick<Meta<'page'>, 'cover' | 'dates' | 'seo'> & { title: string; }; -export type MDXProjectMeta = Omit< - Meta<'project'>, - 'readingTime' | 'wordsCount' -> & { +export type MDXProjectMeta = Exclude<Meta<'project'>, 'wordsCount'> & { intro: string; title: string; }; |
