Skip to main content
Module

x/cliffy/command/command.ts>Command#globalType

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Command.prototype.globalType
import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts";

Type Parameters

THandler extends TypeOrTypeHandler<unknown>
optional
TName extends string = string

Parameters

name: TName
handler: THandler
optional
options: Omit<TypeOptions, "global">

Returns

Command<TParentCommandGlobals, TParentCommandTypes, TCommandOptions, TCommandArguments, TCommandGlobals, TCommandTypes, Merge<TCommandGlobalTypes, TypedType<TName, THandler>>, TParentCommand>