@wocker/core
Version:
Core of the Wocker
24 lines (23 loc) • 603 B
TypeScript
import { ArgMeta } from "../types/ArgMeta";
import { Type } from "../types/Type";
export declare class Route {
readonly type: Type;
readonly method: string;
description?: string;
args: {
type: "param" | "option";
name: string;
params: any;
}[];
argsMeta: ArgMeta[];
designTypes: any[];
commandNames: string[];
completions: {
name: string;
command?: string;
}[];
constructor(type: Type, method: string);
get isCommand(): boolean;
get isCompletion(): boolean;
getArgType(index: number): string | undefined;
}