diff options
Diffstat (limited to 'src/types.d.ts')
-rw-r--r-- | src/types.d.ts | 16 |
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; + }; +} + |