From be1ce532b26aea4e3e2258da78849bd245f7f78b Mon Sep 17 00:00:00 2001
From: Ruben Beltran del Rio <ruben@unlimited.pizza>
Date: Sun, 1 May 2022 15:01:50 +0200
Subject: Use tailwind, reference types

---
 src/lib/components/post/post.svelte | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/lib/components/post/post.svelte')

diff --git a/src/lib/components/post/post.svelte b/src/lib/components/post/post.svelte
index d909be1..535f7ac 100644
--- a/src/lib/components/post/post.svelte
+++ b/src/lib/components/post/post.svelte
@@ -1,12 +1,14 @@
 <script lang="ts">
-	export let post;
+	import type { Post } from '$lib/data/types';
+
+	export let post: Post;
 	export let index = 0;
 	export let count = 1;
 
 	import { _ } from 'svelte-i18n';
 	import Glyph from '$lib/components/glyph/glyph.svelte';
 
-	const timestampToISO = (timestamp) => new Date(timestamp).toISOString();
+	const timestampToISO = (timestamp: number) => new Date(timestamp).toISOString();
 </script>
 
 <aside
-- 
cgit 

