Files
website-old/types/types.ts
2021-10-19 16:46:29 +02:00

39 lines
535 B
TypeScript
Executable File

interface Form {
email: string,
name: string,
content: string,
subject: string
}
interface Translation {
code: string
french: string
english: string
}
interface Tag {
slug: string
}
interface Post {
slug: string,
title: string,
description: string,
reading_time: number,
tags: Array<Tag>,
cover: string,
date: string
}
interface NewsletterForm {
email: string
}
interface State {
opened: boolean,
route: string,
email: string
}
export { Form, Translation, Post, Tag, NewsletterForm, State }