Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / CardReferenceType

Type Alias: CardReferenceType

CardReferenceType = NonNullable<CardReferenceInput["cardTypes"]>[number]

Defined in: packages/ts-sdk/src/resources/card-types.ts:153

Card type labels accepted by card reference lookup.

Pass these when a set number can refer to more than one card type, such as leaders, bases, or tokens sharing printed numbers.

Example:

ts
import type { 
CardReferenceType
} from '@my-swu/simulator-client'
const
cardReferenceType
:
CardReferenceType
= 'leader'
console
.
log
(
cardReferenceType
)

Example

ts
import type { CardReferenceType } from '@my-swu/simulator-client'

const leaderOnly: CardReferenceType[] = [
  'leader',
]
console.log(leaderOnly.includes('leader'))

See

https://simulator-sdk.my-swu.com/guide/card-ids#resolving-card-ids

Released under the MIT License.