Generic Data Transfer Object, used widely in Takaro to pass data back and forth between components Allows validation of properties when instantiated and JSON (de)serialization

Hierarchy (View Summary)

Constructors

Properties

epicOnlineServicesId?: string
gameId: string

Unique identifier for this player, as used by the game

ip?: string
name: string

The players username

ping?: number
platformId?: string
steamId?: string
xboxLiveId?: string

Methods

  • Returns Record<string, any>

  • Validates the DTO instance

    Parameters

    • OptionalextraOpts: ValidatorOptions

    Returns Promise<void>

    if validation fails