Skip to content

fix(docs): Correct TypeScript SDK method name for fetching a single card#223

Open
valentinChantelot wants to merge 1 commit into
tcgdex:masterfrom
valentinChantelot:master
Open

fix(docs): Correct TypeScript SDK method name for fetching a single card#223
valentinChantelot wants to merge 1 commit into
tcgdex:masterfrom
valentinChantelot:master

Conversation

@valentinChantelot
Copy link
Copy Markdown

What and why

The TypeScript tab in the "Getting a single card" page was showing an incorrect method name:

// Before (wrong)
const card = await tcgdex.card.getCard('swsh3-136');

// After (correct)
const card = await tcgdex.card.get('swsh3-136');

The method getCard does not exist in the TypeScript SDK. The correct method is .get(),
consistent with the JavaScript SDK and confirmed by the TypeScript typings.

Type of change

  • Bug fix

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.

1 participant