markdown-toc-gen
Version:
Generating and updating table of contents in Markdown files which conform with prettier.
19 lines (18 loc) • 710 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DiContainer = void 0;
const inversify_1 = require("inversify");
const markdown_service_1 = require("./markdown/markdown.service");
const toc_service_1 = require("./toc/toc.service");
const types_1 = require("./types");
/**
* Dependency Injection container
*/
class DiContainer {
constructor() {
this.diContainer = new inversify_1.Container();
this.diContainer.bind(types_1.TYPES.MarkdownService).to(markdown_service_1.MarkdownService).inSingletonScope();
this.diContainer.bind(types_1.TYPES.TocService).to(toc_service_1.TocService).inSingletonScope();
}
}
exports.DiContainer = DiContainer;