Skip to main content

Class: Schedule

Represents an F1 schedule.

Hierarchy

Constructors

constructor

new Schedule(data): Schedule

Parameters

NameTypeDescription
dataRawScheduleItem[]Data to process.

Returns

Schedule

Overrides

Base.constructor

Defined in

structures/Schedule.ts:19

Properties

events

events: Event[]

An array of events that belong to the schedule.

Defined in

structures/Schedule.ts:14

Methods

round

round(number): null | Event

Get an event by its round number on the schedule.

Parameters

NameTypeDescription
numbernumberThe round number.

Returns

null | Event

Defined in

structures/Schedule.ts:33