refactor: improve type definitions for selectedCharacter and selectedCharacters in WinPanel component
This commit is contained in:
@@ -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 🤨'];
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user