aboutsummaryrefslogtreecommitdiff
path: root/src/types.d.ts
blob: e84f96ca72de1cf328a68135bf3fb74975a54ee7 (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
25
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;
  };
}