Skip to main content
Module

x/omdb/deps.ts>Command#type

Access OMDb's API with Deno.
Go to Latest
method Command.prototype.type
Re-export
import { Command } from "https://deno.land/x/omdb@v1.4.3/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>