aboutsummaryrefslogtreecommitdiff
path: root/src/types.d.ts
blob: 6cf4fdde00b2216e2dd9229d01733bcac782f0e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export interface User {
  name: string;
  avatarUrl: string;
}
interface ImageData {
  url: string;
  votes: number;
}

export interface Poll {
  author: {
    name: string;
    avatarUrl: string;
  };
  contents: {
    left: ImageData;
    right: ImageData;
  };
}