@tsed/cli-core
Version:
Build your CLI with TypeScript and Decorators
7 lines (6 loc) • 301 B
JavaScript
import { StoreSet, useDecorators } from "@tsed/core";
import { Injectable } from "@tsed/di";
import { CommandStoreKeys } from "../domains/CommandStoreKeys.js";
export function Command(options) {
return useDecorators(Injectable({ type: "command" }), StoreSet(CommandStoreKeys.COMMAND, options));
}