From 65fdb8bb131eb9dd497d130588abf2e92ce7893e Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 7 Apr 2024 03:33:11 -0700
Subject: fix(layout): subtitle types

---
 src/routes/+layout.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 98544a75..9bd00c72 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,4 +1,5 @@
 <script lang="ts">
+	import type { SubsPleaseEpisode } from '$lib/Media/Anime/Airing/Subtitled/subsPlease';
 	import { env } from '$env/dynamic/public';
 	import { userIdentity as getUserIdentity } from '$lib/Data/AniList/identity';
 	import { onMount } from 'svelte';
@@ -101,7 +102,7 @@
 					for (const day in subtitles) {
 						if (!r.schedule[day]) r.schedule[day] = [];
 
-						subtitles[day as keyof typeof subtitles].forEach((episode: any) => {
+						(subtitles[day as keyof typeof subtitles] as SubsPleaseEpisode[]).forEach((episode) => {
 							r.schedule[day].push({
 								title: episode.title,
 								page: episode.page || '',
-- 
cgit v1.2.3

