fix: lint

This commit is contained in:
DecDuck
2025-11-22 10:46:03 +11:00
parent e230f79b54
commit 1e7ed34a60
4 changed files with 10 additions and 4 deletions

View File

@ -47,7 +47,9 @@ import { XMarkIcon } from "@heroicons/vue/24/solid";
import type { SerializeObject } from "nitropack";
import type { NotificationModel } from "~/prisma/client/models";
const props = defineProps<{ notification: SerializeObject<NotificationModel> }>();
const props = defineProps<{
notification: SerializeObject<NotificationModel>;
}>();
async function deleteMe() {
await $dropFetch(`/api/v1/notifications/:id`, {

View File

@ -49,5 +49,7 @@
import type { SerializeObject } from "nitropack";
import type { NotificationModel } from "~/prisma/client/models";
const props = defineProps<{ notifications: Array<SerializeObject<NotificationModel>> }>();
const props = defineProps<{
notifications: Array<SerializeObject<NotificationModel>>;
}>();
</script>

View File

@ -4,7 +4,10 @@ import type { NotificationModel } from "~/prisma/client/models";
const ws = new WebSocketHandler("/api/v1/notifications/ws");
export const useNotifications = () =>
useState<Array<SerializeObject<NotificationModel>>>("notifications", () => []);
useState<Array<SerializeObject<NotificationModel>>>(
"notifications",
() => [],
);
ws.listen((e) => {
const notification = JSON.parse(e) as SerializeObject<NotificationModel>;

View File

@ -26,7 +26,6 @@
<TrashIcon class="size-4" />
{{ $t("account.notifications.clear") }}
</button>
</div>
</div>
<p