UNPKG

formula1.js

Version:
21 lines (20 loc) 521 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Session = void 0; const Tools_1 = require("../Tools"); class Session { constructor(grandprix, data, name) { this.grandprix = grandprix; this.date = (0, Tools_1.getDate)({ date: data.date, time: data.time || '00:00:00Z', }); this.name = name; this.completed = this.date < new Date(); } name; grandprix; date; completed; } exports.Session = Session;