Skip to content

fix: add optional card property to Card type - #3348

Open
abhijit9040 wants to merge 1 commit into
OWASP:masterfrom
abhijit9040:fix/card-type-mismatch
Open

fix: add optional card property to Card type#3348
abhijit9040 wants to merge 1 commit into
OWASP:masterfrom
abhijit9040:fix/card-type-mismatch

Conversation

@abhijit9040

Copy link
Copy Markdown
Contributor

Description

This PR addresses a type mismatch issue that was causing svelte-check errors during static analysis, specifically related to the rendering of Joker cards in the cardPreview.svelte component.

The YAML data correctly populates the card property at runtime for Joker cards, but the TypeScript Card type definition was missing this property.

Changes Made

  • Added the optional property card?: string to the Card type defined in src/domain/card/card.ts.

Verification

  • Verified that pnpm run check (running svelte-check) now executes successfully without the Property 'card' does not exist on type 'Card' error.

issue -#2823

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the Joker card label to the Card type, resolving issue #2823 and the svelte-check type error.

Changes:

  • Added optional card?: string property to Card.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants