Module

x/wmill/deps.ts>Command#type

Open-source developer platform to turn scripts into workflows and UIs. Fastest workflow engine (5x vs Airflow). Open-source alternative to Airplane and Retool.
Go to Latest
method Command.prototype.type
import { Command } from "https://dotland.deno.dev/x/wmill@v1.346.0/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>