oxen-website/types/blog.ts

29 lines
530 B
TypeScript
Raw Normal View History

2021-01-29 03:50:49 +01:00
export type IAuthor = {
name: string;
shortBio: string;
email: string;
2021-01-31 11:02:19 +01:00
// Eg. Marketing Researcher
position: string | null;
twitter: string | null;
facebook: string | null;
github: string | null;
2021-01-29 03:50:49 +01:00
};
export type IFigureImage = {
2021-01-31 11:02:19 +01:00
title: string | null;
description: string | null;
2021-01-29 03:50:49 +01:00
imageUrl: string;
};
export type IPost = {
id: string;
title: string;
subtitle: string;
2021-01-31 11:02:19 +01:00
body: string;
2021-01-29 03:50:49 +01:00
author?: IAuthor;
2021-01-31 11:02:19 +01:00
publishedDate: string;
featureImage?: IFigureImage;
tags: Array<string>;
slug: string;
2021-01-29 03:50:49 +01:00
};