Takaro - v0.4.9
    Preparing search index...

    Class TakaroEventPlayerNewNameDetected

    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)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    newName: string
    oldName: string | null
    timestamp: string = ...
    type: "player-new-name-detected" = TakaroEvents.PLAYER_NEW_NAME_DETECTED

    Methods

    • Parameters

      • OptionaloptionOverrides: ClassTransformOptions

      Returns Record<string, any>

    • Validates the DTO instance

      Parameters

      • OptionalextraOpts: ValidatorOptions

      Returns Promise<void>

      if validation fails