aboutsummaryrefslogtreecommitdiff
path: root/src/types.d.ts
blob: a62eec8ba3cc2ede46c9c5a251f5bfd46eb2217d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export interface Page {
  prefix: string;
  id: string;
}
export interface User {
  name: string;
  avatarUrl: string;
  _id: string;
}

interface ImageData {
  url: string;
  votes: number;
}

export interface Poll {
  _id: string;
  author: User;
  contents: {
    left: ImageData;
    right: ImageData;
  };
}