UNPKG

iracing-api

Version:

Javascript client for iracing API

18 lines (17 loc) 494 B
import { API } from './api'; /** * Provides methods for interacting with car class endpoints. */ export class CarClassAPI extends API { constructor() { super(...arguments); /** * Get a list of all available car classes. * * @returns A promise resolving to an array of car class objects, or undefined on error. */ this.getCarClasses = async () => { return await this._getData('data/carclass/get'); }; } }