Skip to main content
Module

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

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

Register custom type.

Type Parameters

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

Parameters

name: TName

The name of the type.

handler: THandler

The callback method to parse the type.

optional
options: TypeOptions

Type options.

Returns

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