UNPKG

@wocker/core

Version:
16 lines (15 loc) 611 B
import "reflect-metadata"; import { CommandInput } from "@kearisp/cli"; import { InstanceWrapper } from "./InstanceWrapper"; import { ModuleWrapper } from "./ModuleWrapper"; import { Type } from "../types/Type"; import { Route } from "./Route"; export declare class ControllerWrapper<TInput = any> extends InstanceWrapper { readonly _type: Type<TInput>; description?: string; commands: Route[]; completions: Route[]; constructor(module: ModuleWrapper, type: Type<TInput>); getCompletionCommands(name: string, command: string): Route[]; run(route: Route, input: CommandInput): any; }