A type mismatch exists between the YAML data and the TypeScript Card type, causing a svelte-check error in components. In cardPreview.svelte, the template uses card?.card ?? card?.value to handle Joker cards, but the card property is not defined in the Card type.
Root Cause
- YAML data includes a card field for Joker cards
- The Card interface in TypeScript does not include this field
- The data is correctly populated at runtime, but TypeScript flags it as invalid during static analysis
A type mismatch exists between the YAML data and the TypeScript Card type, causing a svelte-check error in components. In cardPreview.svelte, the template uses card?.card ?? card?.value to handle Joker cards, but the card property is not defined in the Card type.
Root Cause