From c2dc7906e47a05cecc6350fd6a3d6f6f955a3423 Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Tue, 6 Jul 2021 14:55:58 +0200
Subject: Frontend uses shared types

---
 packages/client/src/views/Repository.vue | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'packages/client/src/views/Repository.vue')

diff --git a/packages/client/src/views/Repository.vue b/packages/client/src/views/Repository.vue
index c91491c..8586b2a 100644
--- a/packages/client/src/views/Repository.vue
+++ b/packages/client/src/views/Repository.vue
@@ -11,10 +11,11 @@
 <script lang="ts">
 import { defineComponent, Ref, ref } from "vue";
 import { Router } from "vue-router";
+import { Repository } from "shared_types";
+import { getParam } from "../util/util";
 
 import RepositoryHeader from "../components/RepositoryHeader.vue";
 import RepositoryNavbar from "../components/RepositoryNavbar.vue";
-import { getParam } from "../util/util";
 
 export default defineComponent({
 	name: "Repository",
@@ -37,7 +38,7 @@ export default defineComponent({
 				});
 
 			if(repository_data) {
-				const data = (await repository_data.json()).data;
+				const data: Repository = (await repository_data.json()).data;
 				name.value = data.name;
 				description.value = data.description;
 				has_readme.value = data.has_readme;
-- 
cgit v1.2.3-18-g5258

