aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/raw-data.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-03 16:51:22 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-03 16:51:22 +0200
commit83a029084f1bbfd78b7099d9bea3371d4533c6d9 (patch)
treef99854e4cb430ccbdb725cb2e287423f80cb9791 /src/ts/types/raw-data.ts
parent732d0943f8041d76262222a092b014f2557085ef (diff)
chore: add a LegalNotice page
Diffstat (limited to 'src/ts/types/raw-data.ts')
-rw-r--r--src/ts/types/raw-data.ts6
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;