Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ndeno/src/deps.ts>Command#type

js runtime project management tool / js runtime 项目管理工具
Go to Latest
method Command.prototype.type
import { Command } from "https://deno.land/x/ndeno@v2.0.4/src/deps.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>