From f3619b20e1c5baa342eb7466c67c44d3192bb3eb Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Tue, 13 Apr 2021 00:52:32 -0500
Subject: Initial TypeScript refactoring

---
 src/views/About.vue | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'src/views/About.vue')

diff --git a/src/views/About.vue b/src/views/About.vue
index ab4725e..ac2bde1 100644
--- a/src/views/About.vue
+++ b/src/views/About.vue
@@ -7,18 +7,19 @@
   </div>
 </template>
 
-<script>
+<script lang="ts">
+import { defineComponent } from 'vue';
 import FileUpload from '../components/FileUpload.vue';
 
 import { parsePtDatabase } from '../features/parser';
 
-export default {
+export default defineComponent({
   name: 'About',
   components: {
     FileUpload,
   },
   methods: {
-    handleDatabaseChange(files) {
+    handleDatabaseChange(files: File[]) {
       parsePtDatabase(files[0]).then((result) => {
         this.$store.commit('setLabs', result.labs);
         this.$store.commit('setPeerTeachers', result.peerTeachers);
@@ -26,5 +27,5 @@ export default {
       });
     },
   },
-};
+});
 </script>
-- 
cgit v1.2.3

