UNPKG

@tsed/cli

Version:
21 lines (20 loc) 749 B
import { __decorate } from "tslib"; import { injectMany } from "@tsed/cli-core"; import { Module } from "@tsed/di"; import { InitExpressPlatform } from "./supports/InitExpressPlatform.js"; import { InitFastifyPlatform } from "./supports/InitFastifyPlatform.js"; import { InitKoaPlatform } from "./supports/InitKoaPlatform.js"; let InitPlatformsModule = class InitPlatformsModule { constructor() { this.platforms = injectMany("platform:init"); } get(name) { return this.platforms.find((platform) => platform.name === name); } }; InitPlatformsModule = __decorate([ Module({ imports: [InitExpressPlatform, InitKoaPlatform, InitFastifyPlatform] }) ], InitPlatformsModule); export { InitPlatformsModule };