From 821e290b454682c2e52b608c6116546ec90f8169 Mon Sep 17 00:00:00 2001 From: silverpill Date: Sat, 28 May 2022 23:39:05 +0000 Subject: [PATCH] Install vue-tsc to check types in diff --git a/src/components/PostOrRepost.vue b/src/components/PostOrRepost.vue index fc833cc..9c7ae7a 100644 --- a/src/components/PostOrRepost.vue +++ b/src/components/PostOrRepost.vue @@ -25,7 +25,7 @@ const props = defineProps<{ post: PostObject, }>() -const emit = defineEmits<{(event: "post-deleted"): void}>() +const emit = defineEmits<{(event: "post-deleted", postId: string): void}>() function onPostDeleted(postId: string) { emit("post-deleted", postId) diff --git a/src/components/Search.vue b/src/components/Search.vue index 63b35e5..54a9dbe 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -1,5 +1,5 @@