From 97dc68e22e754d8e478beee590dbe9868171af50 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 25 Jan 2022 15:33:27 +0100 Subject: chore: add reading time in posts meta --- src/ts/types/taxonomies.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/ts/types/taxonomies.ts') diff --git a/src/ts/types/taxonomies.ts b/src/ts/types/taxonomies.ts index 7d4ad3b..a62bef4 100644 --- a/src/ts/types/taxonomies.ts +++ b/src/ts/types/taxonomies.ts @@ -1,4 +1,4 @@ -import { ContentParts, Dates, Slug } from './app'; +import { ContentInfo, ContentParts, Dates, Slug } from './app'; import { ArticlePreview, RawArticlePreview } from './articles'; import { Cover, RawCover } from './cover'; import { SEO } from './seo'; @@ -12,13 +12,17 @@ type Taxonomy = { databaseId: number; dates: Dates; id: string; + info: ContentInfo; intro: string; posts: ArticlePreview[]; seo: SEO; title: string; }; -type TaxonomyPreview = Pick & { +type TaxonomyPreview = Pick< + Taxonomy, + 'databaseId' | 'id' | 'info' | 'seo' | 'title' +> & { slug: string; }; -- cgit v1.2.3