Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/powar/deps.ts>cliffy.Command#type

A simple but powerful TypeScript-based dot-file manager.
Go to Latest
method cliffy.Command.prototype.type
Re-export
import { cliffy } from "https://deno.land/x/powar@1.0.3/deps.ts";
const { Command } = cliffy;

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>