From 34e216546151eaf8a0a3cbb0bc8b65dae4c63bf2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 23 May 2022 14:07:02 +0200 Subject: refactor: reduce the number of data transformation --- src/ts/types/mdx.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ts/types/mdx.ts') 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, 'cover' | 'dates' | 'seo'> & { title: string; }; -export type MDXProjectMeta = Omit< - Meta<'project'>, - 'readingTime' | 'wordsCount' -> & { +export type MDXProjectMeta = Exclude, 'wordsCount'> & { intro: string; title: string; }; -- cgit v1.2.3