-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.d.ts
43 lines (38 loc) · 794 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { ObjectId } from "mongodb";
export type Langs = "en" | "fr";
export type LangObject = Record<Langs, string>;
export type Street = {
images: {
src: string;
alt: LangObject;
}[];
name: LangObject;
description: LangObject;
location: LangObject;
body: LangObject;
};
export type Idea = {
_id: ObjectId;
image: string;
name: LangObject;
description: LangObject;
votesCount: number;
hasVoted: boolean;
authorName?: string;
pending?: true;
};
export type EventInfo = {
name: LangObject;
location: LangObject;
description: LangObject;
href?: string;
dateStart: Date;
dateEnd: Date;
};
export type Step = {
date: LangObject;
title: LangObject;
href?: string;
subtitle: LangObject;
status: "completed" | "in-progress" | "coming";
};