UNPKG

soccer-go

Version:

Soccer CLI for stats and results.

22 lines (21 loc) 693 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const dayjs_1 = __importDefault(require("dayjs")); class Player { constructor(data) { this.toRow = () => [ this.name, this.position, this.nationality, (0, dayjs_1.default)(this.dateOfBirth).format('MM/DD/YYYY'), ]; this.name = data.name; this.position = data.position; this.dateOfBirth = data.dateOfBirth; this.nationality = data.nationality; } } exports.default = Player;