riotg.api
Version:
<a href="https://www.npmjs.com/package/riotg.api"> <img src="https://img.shields.io/static/v1?label=npm&message=riotg.api&color=red&style=for-the-badge&logo=NPM" /> </a>
15 lines (14 loc) • 398 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RiotClient = void 0;
const lol_1 = require("./lol");
class RiotClient {
constructor({ apiKey, region = "na1" }) {
this.apiKey = apiKey;
this.region = region;
}
lol() {
return new lol_1.Lol({ apiKey: this.apiKey, region: this.region });
}
}
exports.RiotClient = RiotClient;