From 29351b07af05efc496214fcaf8312afc376be9cb Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Thu, 29 Apr 2021 15:47:20 -0500
Subject: Make all components use typescript

---
 src/components/FileUpload.vue | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'src/components/FileUpload.vue')

diff --git a/src/components/FileUpload.vue b/src/components/FileUpload.vue
index fe3ef1e..082fc9d 100644
--- a/src/components/FileUpload.vue
+++ b/src/components/FileUpload.vue
@@ -9,11 +9,16 @@
   </label>
 </template>
 
-<script>
-export default {
+<script lang="ts">
+import { defineComponent } from 'vue';
+
+export default defineComponent({
   name: 'FileUpload',
   props: {
-    accept: String,
+    accept: {
+      type: String,
+      required: false,
+    },
     multiple: {
       type: Boolean,
       default: false,
@@ -22,7 +27,7 @@ export default {
   emits: {
     fileChanged: null,
   },
-};
+});
 </script>
 
 <style scoped>
-- 
cgit v1.2.3

