Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / PlaygroundDefeatTarget

Type Alias: PlaygroundDefeatTarget ​

PlaygroundDefeatTarget = { type: "unit"; unit_id: number; } | { type: "upgrade"; upgrade_id: number; }

Defined in: packages/ts-sdk/src/generated/types/common.ts:4987

One in-play card Playground may defeat through normal leave-play handling.

Example:

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

const playgroundDefeatTarget: PlaygroundDefeatTarget = {
  "type": "unit",
  "unit_id": 0,
}

console.log(playgroundDefeatTarget)

Released under the MIT License.