Skip to content

Missing card property in Card type causing svelte-check failure #2823

Description

@abhijit9040

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions