@balldontlie/sdk
Version:
Official TypeScript/JavaScript SDK for the balldontlie API
32 lines (31 loc) • 1.25 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BalldontlieAPI = void 0;
const epl_1 = require("./epl");
const mlb_1 = require("./mlb");
const nba_1 = require("./nba");
const nfl_1 = require("./nfl");
__exportStar(require("./types"), exports);
class BalldontlieAPI {
constructor(config) {
this.nba = new nba_1.NBAClient(config);
this.nfl = new nfl_1.NFLClient(config);
this.mlb = new mlb_1.MLBClient(config);
this.epl = new epl_1.EPLClient(config);
}
}
exports.BalldontlieAPI = BalldontlieAPI;