@4lch4/toggl-aid
Version:
A wrapper library for interacting with the Toggl API.
18 lines • 593 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TogglAid = void 0;
const Reports_1 = require("./endpoints/Reports");
const Toggl_1 = require("./endpoints/Toggl");
class TogglAid {
constructor(configOpts) {
if (configOpts) {
this.togglAPI = new Toggl_1.TogglAPI(configOpts);
this.reportsAPI = new Reports_1.ReportsAPI(configOpts);
}
else {
throw new Error('You must provide the configOpts to use this library.');
}
}
}
exports.TogglAid = TogglAid;
//# sourceMappingURL=index.js.map