X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/a7cf03c192470cbab13edeb1aec99e0c66dede10..2ab71001d511b656f008316c08e09f89972028d8:/src/routes/t/%5Bid%5D.svelte?ds=sidebyside

diff --git a/src/routes/t/[id].svelte b/src/routes/t/[id].svelte
index 510ced1..d60946b 100644
--- a/src/routes/t/[id].svelte
+++ b/src/routes/t/[id].svelte
@@ -1,12 +1,12 @@
-<script context="module">
+<script lang="ts" context="module">
 	export const load = ({
-	  page: {
-	    params: { id }
-	  }
+		page: {
+			params: { id }
+		}
 	}) => ({ props: { id } });
 </script>
 
-<script>
+<script lang="ts">
 	import { onDestroy } from 'svelte';
 	import { _ } from 'svelte-i18n';
 	import { getTopic } from '$lib/stores/topics';
@@ -16,7 +16,7 @@
 	import ErrorBlock from '$lib/components/error_block/error_block.svelte';
 	import Loader from '$lib/components/loader/loader.svelte';
 
-	export let id;
+	export let id: string;
 
 	$: store = getTopic(id);
 	$: topic = $store.data;
