refactor: improve type definitions for selectedCharacter and selectedCharacters in WinPanel component

This commit is contained in:
2026-03-14 17:22:38 +01:00
parent eeccf812cf
commit fd83ac911a
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
<script lang="ts">
export let selectedCharacter: any;
export let selectedCharacters: any[];
import type { CharacterWithRelations } from "$lib/server/daily-character";
export let selectedCharacter: CharacterWithRelations;
export let selectedCharacters: CharacterWithRelations[];
export let isGeckoMoriaWin: boolean = false;
const oneTryMessages = ['Tricheur 👀', '1 essai ? Avoue, tu avais la réponse 😏', 'Premier coup direct... suspect 🤨'];

View File

@@ -1,5 +1,7 @@
<script lang="ts">
export let yesterdayCharacter: any;
import type { CharacterWithRelations } from "$lib/server/daily-character";
export let yesterdayCharacter: CharacterWithRelations | null;
</script>
<section class="mt-8 rounded-3xl border border-white/10 bg-white/5 p-6 shadow-[0_24px_60px_rgba(0,0,0,0.45)] backdrop-blur">