gather-ts
Version:
A powerful code analysis and packaging tool designed for creating AI-friendly code representations for javascript and typescript projects.
23 lines • 585 B
JavaScript
;
// src/types/services.ts
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseService = void 0;
// src/types/services.ts
class BaseService {
constructor() {
this.isInitialized = false;
}
async initialize() {
this.isInitialized = true;
}
cleanup() {
this.isInitialized = false;
}
checkInitialized() {
if (!this.isInitialized) {
throw new Error(`${this.constructor.name} not initialized`);
}
}
}
exports.BaseService = BaseService;
//# sourceMappingURL=services.js.map