diff options
Diffstat (limited to 'src/ts/types/raw-data.ts')
| -rw-r--r-- | src/ts/types/raw-data.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ts/types/raw-data.ts b/src/ts/types/raw-data.ts index 43a2453..7e12e7f 100644 --- a/src/ts/types/raw-data.ts +++ b/src/ts/types/raw-data.ts @@ -3,7 +3,7 @@ */ import { NodeResponse, PageInfo } from '@services/graphql/api'; -import { AuthorKind } from './app'; +import { ContentKind } from './app'; export type ACFPosts = { postsInThematic?: RawThematicPreview[]; @@ -29,8 +29,8 @@ export type Info = { wordsCount: number; }; -export type RawAuthor<T extends AuthorKind> = { - description?: T extends 'page' ? string | undefined : never; +export type RawAuthor<T extends ContentKind> = { + description?: T extends 'comment' ? never : string; gravatarUrl?: string; name: string; url?: string; |
