UNPKG

soccer-go

Version:

Soccer CLI for stats and results.

23 lines (22 loc) 581 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const date_format_1 = require("../utils/date-format"); class Player { name; position; dateOfBirth; nationality; constructor(data) { this.name = data.name; this.position = data.position; this.dateOfBirth = data.dateOfBirth; this.nationality = data.nationality; } toRow = () => [ this.name, this.position, this.nationality, (0, date_format_1.formatPlayerDate)(this.dateOfBirth), ]; } exports.default = Player;