aboutsummaryrefslogtreecommitdiff
path: root/src/types.d.ts
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-07 16:51:42 +0300
committerGitHub <noreply@github.com>2020-06-07 16:51:42 +0300
commit4e4c9d529e6f70e7dac84aaecb5b6a25769c3290 (patch)
tree7cf4ded95eec70201217552aa6dca7b35a2aa16d /src/types.d.ts
parentce8764580983e0008300bcc88d463da44d94c455 (diff)
parentd549053615ce308b906ca406f8d6623c0730d636 (diff)
downloadwhich-ui-4e4c9d529e6f70e7dac84aaecb5b6a25769c3290.tar.gz
Merge pull request #11 from ilyayudovin/poll-functionality
Add functionality to Poll component
Diffstat (limited to 'src/types.d.ts')
-rw-r--r--src/types.d.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/types.d.ts b/src/types.d.ts
new file mode 100644
index 0000000..9b4d16a
--- /dev/null
+++ b/src/types.d.ts
@@ -0,0 +1,16 @@
+interface ImageData {
+ url: string;
+ votes: number;
+}
+
+export interface Poll {
+ author: {
+ name: string;
+ avatarUrl: string;
+ };
+ contents: {
+ left: ImageData;
+ right: ImageData;
+ };
+}
+