Files
website-old/types/types.ts
2021-08-24 13:01:54 +02:00

33 lines
445 B
TypeScript
Executable File

interface Form {
email: string,
name: string,
content: string,
subject: 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, Post, Tag, NewsletterForm, State }