Skip to main content
Module

x/cliffy/mod.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
Re-export
import { Command } from "https://deno.land/x/cliffy@v0.25.1/mod.ts";

Register custom type.

Type Parameters

H extends TypeOrTypeHandler<unknown>
optional
N extends string = string

Parameters

name: N

The name of the type.

handler: H

The callback method to parse the type.

optional
options: ITypeOptions

Type options.

Returns

Command<CPG, CPT, CO, CA, CG, Merge<CT, TypedType<N, H>>, CGT, CP>