aboutsummaryrefslogtreecommitdiff
path: root/src/types.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.d.ts')
-rw-r--r--src/types.d.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/types.d.ts b/src/types.d.ts
index 31c2c74..e84f96c 100644
--- a/src/types.d.ts
+++ b/src/types.d.ts
@@ -1,8 +1,14 @@
+export interface Page {
+ prefix: string;
+ id: string;
+}
+
export interface User {
name: string;
avatarUrl: string;
_id: string;
}
+
interface ImageData {
url: string;
votes: number;
@@ -10,10 +16,7 @@ interface ImageData {
export interface Poll {
_id: string;
- author: {
- name: string;
- avatarUrl: string;
- };
+ author: User;
contents: {
left: ImageData;
right: ImageData;